tags:

views:

67

answers:

2
+1  A: 

This will match only strings that do not contain a single quotation mark (your question is very unspecific so I have no idea if that's what you want, please be as specific as possible and describe what you really want to do):

/^[^']*$/
DarkDust
+2  A: 

If you want to say "match any character but zzz," use [^].

[^']+ will match one or more characters, up until it hits a '.

If you want to make sure the entire string does not contain the specified character:

^[^']*$
Merlyn Morgan-Graham