开发者

need help to create regular expression [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

i need regular expression which is not allow &#39 开发者_如何学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):

/^[^']*$/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜