Skip to content

Instantly share code, notes, and snippets.

@iambibhas
Created May 5, 2013 20:02
Show Gist options
  • Save iambibhas/5522007 to your computer and use it in GitHub Desktop.
Save iambibhas/5522007 to your computer and use it in GitHub Desktop.
Regex to match a date in the format YYYY-MM-DD
(19|20)([0-9][0-9])\-(0[1-9]|1[0-2])\-(0[1-9]|1[0-9]|2[0-9]|3[0-1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment