Created
April 14, 2025 03:45
-
-
Save tylerlwsmith/3d2c9e6d431b54c5559f28dd89e01d32 to your computer and use it in GitHub Desktop.
Phone number regular expressions
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
(555) 555-5555 | |
/\(\d{3}\) \d{3}-\d{4}/ | |
(555)555-5555 | |
/\(\d{3}\)\d{3}-\d{4}/ | |
555-555-5555 | |
/\d{3}\-\d{3}-\d{4}/ | |
555.555.5555 | |
/\d{3}\.\d{3}.\d{4}/ | |
tel:15555555555 | |
/tel:\d{11}/ | |
tel:5555555555 | |
/tel:\d{10}/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment