Created
May 3, 2020 12:49
-
-
Save JustAyush/0a8ea5ef72ac6ce611915cfea1b6d512 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const phoneNumberPattern = new RegExp("/^98[0,1,4,5,6]{1}[0-9]{7}$/"); | |
| const phoneNumberResult = phoneNumberPattern.test('9860922044'); | |
| console.log(phoneNumberResult); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment