Skip to content

Instantly share code, notes, and snippets.

@wiyoe
Last active March 14, 2022 09:44
Show Gist options
  • Select an option

  • Save wiyoe/c8e8d18a9e1b6c1d8c9e632ce1cfc074 to your computer and use it in GitHub Desktop.

Select an option

Save wiyoe/c8e8d18a9e1b6c1d8c9e632ce1cfc074 to your computer and use it in GitHub Desktop.
Turkey Mobile Phone Regex
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
@muhammed-kizilkaya
Copy link
Copy Markdown

successful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment