Hello,
i need a regular expression that match all the characters entred by the user except the character "_"
Is it possible?
thx
Hello,
i need a regular expression that match all the characters entred by the user except the character "_"
Is it possible?
thx
Yes it's possible.
Did you try to create such a regexp? But I would not use a regexp at all - just search the string for '_'
mattia (28th March 2008)
i have to control a QLineEdit input a runtime, 'cause i need to check the character typed by the user...i set a validator in this way:
so i can't do it in the way that u suggested before, maybe i have not been clear enough during in my problem explanationQt Code:
To copy to clipboard, switch view to plain text mode
So what's in place of "control input" or does it present a regular expression?
J-P Nurmi
no i need something to substitute to "control input"
Have you tried anything yourself? Did you decide not to bother reading QRegExp docs and ask here instead? Go read through the detailed description of QRegExp docs. The answer is there. The reference documentation is your number one resource. Read the docs first, then come ask here if problems occur...
J-P Nurmi
mattia (28th March 2008)
i did it in this way:
"[^controlString]+"
where controlString is a characters ban list
maybe a deserve a "thanks" by myself but i can't apply it
Bookmarks