My app downloads a HTML webpage source code and then try to exctract html lines (tr). My code:
QStringList linesPage1 = page1.split(QRegularExpression("<tr.*>"));
But when I do this:
qDebug() << linesPage1;
I got this:
("<table width=\"1085\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">", "")
When I try this code, he finds 31 occurences:
qDebug() << page1.count(QRegularExpression("<tr.*>"));
I don't understand why he counts 31 occurences but on another hand, he doesn't split the string.