[Qt-interest] QRegExp match end of a string
Louis Hoefler
louis.hoefler at gmx.de
Wed Feb 2 20:44:37 CET 2011
Hello everyone,
I try to match string who end with "sometext".
I use this QRegExp("sometext$") to do so.
Now, I call qstring.contains(regexp)
to see weather the regexp matched.
Howevery, lines who end with "sometext" return
no match, but I do not really understand why.
Using this regexp to test for strings who only
contain spaces, tabs or nothing works
QRegExp("^[\\s\\t]*$")
Greetings, Louis
More information about the Qt-interest-old
mailing list