Last active
March 14, 2022 09:44
-
-
Save wiyoe/c8e8d18a9e1b6c1d8c9e632ce1cfc074 to your computer and use it in GitHub Desktop.
Turkey Mobile Phone Regex
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
| var str = "5359999999"; | |
| var patt = new RegExp("(05|5)[0-9][0-9][1-9]([0-9]){6}"); | |
| var res = patt.test(str); | |
| console.log(res); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
successful