Created
September 23, 2020 15:50
-
-
Save humphd/584fb474be78adce65628a6ff3dfb761 to your computer and use it in GitHub Desktop.
WEB222 Week 3 RegExp
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
[email protected] | |
[email protected] | |
(\w+)@([\w.]+) | |
491 5050 | |
(416) 491 5050 | |
(416) 491-5050 | |
416-491-5050 | |
416 491 5050 | |
416 4915050 | |
416 491 5050 | |
4164915050 | |
(416)4915050 | |
(416) 491 5050 | |
(\(?\d{3}\)?[-\s]*)\d{3}[-\s]*\d{4} | |
? - optional (0 or 1) | |
* - 0 or more | |
+ - 1 or more | |
{5} - exactly 5 | |
{5,7} - between 5 and 7 | |
^ - look from the beginning of the input string | |
$ - match at the end of the input string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment