AS3 RegExp: Validate Date of Birth (English / American notation )


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Validates 10-26-1981, 10/26/1981 and 10.26.1981
  2.  
  3. /(0[1-9]|1[012])[\/](0[1-9]|[12][0-9]|3[01])[\/](19|20)[0-9]{2}/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.