Skip to content

Instantly share code, notes, and snippets.

@michaelaguiar
Created September 29, 2011 00:48
Show Gist options
  • Select an option

  • Save michaelaguiar/1249725 to your computer and use it in GitHub Desktop.

Select an option

Save michaelaguiar/1249725 to your computer and use it in GitHub Desktop.
RegEx - Validate Postal Code
/^\d{5}([\-]\d{4})?$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment