PDA

View Full Version : QString



assismvla
30th April 2009, 17:12
I have a QString that contains a html of a page, in the html I have to find all the links inside and put it in a List.

I tried to use QRegExp but I didn´t have good result.

I don´t know the function in QString to get the links using QREgExp

here the RegExp --> http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?

Lykurg
30th April 2009, 17:19
Hi, have a look at the docs! QStringList QRegExp::capturedTexts() there is an example...