QRegExp and character classes
General and Desktop
4
Posts
2
Posters
1.3k
Views
1
Watching
-
wrote on 15 Jul 2014, 11:25 last edited by
Hi there,
I am looking for an equivalent of the boost regexp:
@
"^[[:alpha:]][[:alnum:]_\-]*$"
@with QRegExp.
If I remember correctly, :alpha: is all alphabetic characters, not only latin1 characters.
So [a-zA-Z] would be different to :alpha: :-(
Any Ideas?Does anyone knows if the POSIX Unicode syntax works in Qt:
-
Hi,
AFAIK (I may be wrong though) not with QRegExp (I've tested it a long time ago and looked at QRegExp sources but didn't find anything).
But if you can go with QRegularExpression then you should be good
-
wrote on 15 Jul 2014, 14:13 last edited by
A damn, I knew there was something new in Qt5...
Thanks for the hint.
I will go with that one. -
You're welcome !
Happy regexp coding ! :)
1/4