ASP.NET Regular Expressions List
Posted on Tuesday, June 26, 2012
|
No Comments
Expression List :
Minimum 3 Character Validation : ^[a-zA-Z0-9]{3,}
Only 6 Numbers allowed : [0-9]{6,}
Only Numbers Allowed : ^\d+$
Date Validator : ^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d$ (dd/MM/yyyy) (dd/mm/yyyy)
Date Validator : ^([0-9]{1,2})[./-]+([0-9]{1,2})[./-]+([0-9]{2}|[0-9]{4})$ (mm/dd/yyyy)
Mail Validator :
"^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$"