Yes, I tried setting this minimal flag.
const QString cstrProduktLinkRegExp
("<a .*class=\"produkt\">");
QRegExp stProductRow
(cstrProduktLinkRegExp,Qt
::CaseSensitive,
QRegExp::RegExp2);
stProductRow.setMinimal(true);
iStart = strSearchTable.indexOf(stProductRow,iStart);
if (stProductRow.matchedLength()==0)
return -1;
QString strProductRow
= stProductRow.
cap();
const QString cstrProduktLinkRegExp("<a .*class=\"produkt\">");
QRegExp stProductRow(cstrProduktLinkRegExp,Qt::CaseSensitive,QRegExp::RegExp2);
stProductRow.setMinimal(true);
iStart = strSearchTable.indexOf(stProductRow,iStart);
if (stProductRow.matchedLength()==0)
return -1;
QString strProductRow = stProductRow.cap();
To copy to clipboard, switch view to plain text mode
Still - he finds first matching <A> and finish regexp AFTER first appearance of class="produkt".
Bookmarks