Sorry my previous post was wrong - curly brackets are special characters used when you want to define a number of occurences of an expression, so in order to match them, you have to use backslash:
Sorry I totally forgot about this.Qt Code:
qDebug() << rx.indexIn("{this one}") << rx.indexIn("not this one");To copy to clipboard, switch view to plain text mode





Reply With Quote

Bookmarks