Created
January 5, 2020 16:50
-
-
Save timbillstrom/07e15921c9ce4ba3bab4a68919a31820 to your computer and use it in GitHub Desktop.
[regex] swedish mobile phoneno.
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 regex = /0\s*(7[02369])\s*(\d{4})\s*(\d{3})$/gm; | |
| var found = phone.match(regex); | |
| if (found) { | |
| console.debug('valid: ', found); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment