PDA

View Full Version : How to write a QRegExp for the following requirement?



blue_sky
8th April 2014, 09:56
I want to write a QRegExp which should not include /\:*?"<>| these characters?
please help..

ChrisW67
8th April 2014, 21:40
Should not include them in what exactly? The matched string or the regular expression itself? What have you tried?

wysota
9th April 2014, 10:13
Hmm.... "[^/\\:*?\"<>|\]*]"?

blue_sky
9th April 2014, 17:05
Should not include them in what exactly? The matched string or the regular expression itself? What have you tried?
Want to set a validator for QlineEdit , which will not take input
from key board, if above characters pressed.
thanks in adv..