开发者

Need Regular Expressions for asp.net [closed]

开发者 https://www.devze.com 2023-03-29 14:05 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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