PDA

View Full Version : How to convert the regular expression in opposite one? (QRegExp)



spirt
7th June 2011, 15:06
Hi everyone! Is there any way to convert the particular regular expression in opposite one? For example, if I have "A\\d", it matches A1, A2... Now, I want it to matches everything, but NOT A1, A2 ... How to do this?

spirt
8th June 2011, 06:44
It seems that it can be done just by including the negative lookahead assertion: (?!A\\d)