Skip to content

Instantly share code, notes, and snippets.

@neonxp
Last active October 11, 2015 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neonxp/3898225 to your computer and use it in GitHub Desktop.
Save neonxp/3898225 to your computer and use it in GitHub Desktop.
Date check for d.m.Y format
/^(((([0-2][0-9]|30)\.(04|06|09|11))|(([0-2][0-9]|31)\.(01|03|05|07|08|10|12))|(([0-2][0-9])\.02))\.[0-9](0|4|8)((0|2|4|6|8)(0|4|8)|(1|3|5|7|9)(2|6)))|(((([0-2][0-9]|30)\.(04|06|09|11))|(([0-2][0-9]|31)\.(01|03|05|07|08|10|12))|(([0-2][0-8])\.02))\.!([0-9](0|4|8)((0|2|4|6|8)(0|4|8)|(1|3|5|7|9)(2|6))))$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment