Created
April 1, 2022 08:31
-
-
Save nicolae-olariu/a68c1d50bdca1b45aa63063c042d4d61 to your computer and use it in GitHub Desktop.
JS regex validators
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
US PHONE: ^(\\+\\d{1,2}\\s)?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}$ | |
ZIP: ^[0-9]{5}(?:-[0-9]{4})?$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment