Last active
          May 30, 2021 14:29 
        
      - 
      
- 
        Save sakilk130/c39ac0373ebfe512c8bbfd0cece41f73 to your computer and use it in GitHub Desktop. 
Revisions
- 
        sakilk130 revised this gist May 30, 2021 . No changes.There are no files selected for viewing
- 
        sakilk130 created this gist May 30, 2021 .There are no files selected for viewingThis 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ var re = /^([+]?1[\s]?)?((?:[(](?:[2-9]1[02-9]|[2-9][02-8][0-9])[)][\s]?)|(?:(?:[2-9]1[02-9]|[2-9][02-8][0-9])[\s.-]?)){1}([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2}[\s.-]?){1}([0-9]{4}){1}$/; function telephoneCheck(str) { return re.test(str); } telephoneCheck('555-555-5555');