Racs Corner
Friday, April 23, 2010
Regular Expression for mm/dd/yyyy
Regular Expression which accepts mm/dd/yyyy format is
\b(0?[1-9]|1[0-2])(\/)(0?[1-9]|1[0-9]|2[0-9]|3[0-1])(\/)([1-9][0-9][0-9][0-8])\b
Valid Formats:
1/2/2005
12/28/2006
12/12/2099
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment