i have
if ( text.endsWith("}") || text.endsWith("};") )
and i want to replace it by
if ( text.indexOf(QRegExp("};?$")) != -1 )
but is not same thing - why?
How make right regExp?
Printable View
i have
if ( text.endsWith("}") || text.endsWith("};") )
and i want to replace it by
if ( text.indexOf(QRegExp("};?$")) != -1 )
but is not same thing - why?
How make right regExp?
Curly braces have a special meaning in regexps, try this:
And double backslash to escape the backslash in a C string.
lol - i forget (stupid error
thanx all