Skip to content

Instantly share code, notes, and snippets.

@wiltonbsilva
Created June 14, 2014 14:16
Show Gist options
  • Save wiltonbsilva/132ae9f97f8d92013f33 to your computer and use it in GitHub Desktop.
Save wiltonbsilva/132ae9f97f8d92013f33 to your computer and use it in GitHub Desktop.
Regular Expression to match Brazilian zipcodes (CEP)
RegEx:
(\d{5})-?(\d{3})
Test:
09930-360
Test:
09930360
Test:
09930 777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment