Skip to content

Instantly share code, notes, and snippets.

@lvivski
Created December 5, 2011 14:55
Show Gist options
  • Save lvivski/1433851 to your computer and use it in GitHub Desktop.
Save lvivski/1433851 to your computer and use it in GitHub Desktop.
SImple date regular expression
var dateRE = /(\d{4})?[\/\-]?([0-1](?=[0-2])\d|\d)[\/\-]?(\d{1,2})?/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment