Skip to content

Instantly share code, notes, and snippets.

@b1ek
Last active May 31, 2023 06:59
Show Gist options
  • Save b1ek/82d55cd72336a0adb4f81666bdc3bcdf to your computer and use it in GitHub Desktop.
Save b1ek/82d55cd72336a0adb4f81666bdc3bcdf to your computer and use it in GitHub Desktop.
Russian phone number regex

Russian phone number regex

Regex: /^(\+|)(7|8)( |)\d{3}( |)\d{3}( |)(\d{2}( |)){2}$/
Matches:

  • +799999999
  • 799999999
  • 899999999
  • +899999999
  • +7 99999999
  • +7 999 999 9999
  • +7 999 999 99 99
  • +7 999999 99 99
  • and so on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment