need help to create regular expression [closed]
i need regular expression which is not allow ' 开发者_如何学Python
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:
^[^']*$
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):
/^[^']*$/
精彩评论