Perl-like regular expression in Qt. Using /gs in Qt
I have some regexp with /gs Those regexp work on RegExr
Why can i use /gs in Qt 开发者_Go百科with QRegExp?
For perl-like /g
, you need a loop
By default, QRegExp
pattern .
matches any character so it works the same as /s
.
Further reading: http://doc.trolltech.com/latest/qregexp.html#notes-for-perl-users
精彩评论