[Qt-interest] more hits on QRegExp

Frank Lutz frank422542 at googlemail.com
Sun Jul 19 21:22:25 CEST 2009


Hi,

i do have a string with the syntax:

...
<xyz>A</xyz>
<xyz>B</xyz>
<xyz>C</xyz>
...

now i want get the values with:
QRegExp exp;
exp.setPattern(".*<xyz>(.*)</xyz>.*");
exp.exactMatch(str);

for(int i=0;i<10;i++){
	qDebug()<<exp.cap(i);
}

But it didn't work well :think:

So could you give me please a tip! :D

thanks very!



More information about the Qt-interest-old mailing list