Skip to content

Instantly share code, notes, and snippets.

@yelvert
Created February 24, 2010 20:20
Show Gist options
  • Save yelvert/313802 to your computer and use it in GitHub Desktop.
Save yelvert/313802 to your computer and use it in GitHub Desktop.
re_date_char = /^(?:((((J|j)an(uary)?|(M|m)a(r(ch)?|y)|(J|j)ul(y)?|(A|a)ug(ust)?|(O|o)ct(ober)?|(D|d)ec(ember)?)\ 31)|(((J|j)an(uary)?|(M|m)a(r(ch)?|y)|(A|a)pr(il)?|(J|j)u((ly?)|(ne?))|(A|a)ug(ust)?|(O|o)ct(ober)?|((S|s)ept|(N|n)ov|(D|d)ec)(ember)?)\ (0?[1-9]|([12]\d)|30))|((F|f)eb(ruary)?\ (0?[1-9]|1\d|2[0-8]|(29(?=,\ ((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))))\,\ ((1[6-9]|[2-9]\d)\d{2}))/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment