QRegExp and character classes
-
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
-
You're welcome !
Happy regexp coding ! :)