Last active
December 18, 2015 23:59
-
-
Save culshaw/5865754 to your computer and use it in GitHub Desktop.
This is a file with some useful regexes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Phone number regex. | |
`^([\+\(\)\-\d\s]+)$` | |
Matches all phone numbers including the following characters ()+- and spaces. e.g. `+ 44 (0) 75-111-57-220` | |
# Swedish postcodes. | |
`^(\d\s?){5}$` | |
# Dutch postcode | |
`^(\d\s?){4}([A-Z]\s?){2}$` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment