","=" with QRegExp (Qt). With the folloing regexp, this is not workin..." /> ","=" with QRegExp (Qt). With the folloing regexp, this is not workin..." /> ","=" with QRegExp (Qt). With the folloing regexp, this is not workin..."/>

QRegExp not matching as expected

369 Views Asked by At

i would like to match all strings that contain none of these characters "<",">","=" with QRegExp (Qt). With the folloing regexp, this is not working:

 "^[^><=]+$"

why? to me it means: beginning of string, one or more characters that are not >,<,= and end of string

thanks

EDIT

i would like to match

BUILD

for instance, and i would like not to match

BU<ILD
1

There are 1 best solutions below

0
On BEST ANSWER

Try the other way to do it. Use:

^(?!.*[<>=]).*$