Mega Code Archive

 
Categories / ASP.Net Tutorial / Validation
 

Commonly Used Regular Expressions

Content                       Regular Expression  E-mail address[*]             \S+@\S+\.\S+ Password                    \w+ Specific-length password    \w{4,10} Advanced password             [a¨CzA¨CZ]\w{3,9} Another advanced password     [a¨CzA¨CZ]\w*\d+\w* Limited-length field          \S{4,10} Social Security number        \d{3}-\d{2}-\d{4}