开发者

Need Regular Expressions for asp.net [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 11 years ago.

I have three text boxes. I need:

  1. Regular expression to only allow 3 upper case alphabets. No empty strings and no numbers
  2. Regular expression to allow only 3 numbers. no empty strings
  3. Regular expression for 5 or fewer uppercase alphabe开发者_JS百科ts only. no empty strings, no numbers


This should do it:


1. ^[A-Z]{3}$
2. ^[0-9]{3}$
3. ^[A-Z]{1,5}$


Expresso is a usefull regular expression tool that allows you to build your own regular expressions by selecting options from a form. It will be very easy to create what you have asked for above.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜