You have to double escape the \ . It looks very nasty but it must be done:Qt Code:
int pos = 0; while ((pos = rx.indexIn(s, pos)) != -1) { qWarning() << rx.cap(1); pos += rx.matchedLength(); }To copy to clipboard, switch view to plain text mode
You have to double escape the \ . It looks very nasty but it must be done:Qt Code:
int pos = 0; while ((pos = rx.indexIn(s, pos)) != -1) { qWarning() << rx.cap(1); pos += rx.matchedLength(); }To copy to clipboard, switch view to plain text mode
Bookmarks