Need a regex to match everything that does not contain a '?' -


i want regex rule: not contains ?

i tried doesn't works:

^(?!\?)$ 

to match string not have ? in can use:

^[^?]*$ 

see it

you can use negative lookahead as:

^(?!.*\?).*$ 

see it


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -