Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

phone number regex

^(+d{1,2}s)?(?d{3})?[s.-]d{3}[s.-]d{4}$
Comment

Extract phone number from text regex

(?[2-9][0-9]{2})?[-. ]?[2-9][0-9]{2}[-. ]?[0-9]{4}
Comment

regex phone number

# Examples of vaild phone numbers it accepts
9054286644
905-428-6644
(905)-428-6644
1-(905)-428-6644
(905)4286644
905 428 6644
12 903 455 6789

# Regex expression
^d{0,3}[- ]?[ ]*[(]?d{3}[)]?[- ]?[ ]*d{3}[- ]?[ ]*d{4}$
Comment

phone number regex

^[+0]{0,2}(91)?[0-9]{10}$
Comment

PREVIOUS NEXT
Code Example
Javascript :: nodejs current timestamp 
Javascript :: jquery add style background-image 
Javascript :: datatable setup 
Javascript :: remove array elements javascript 
Javascript :: jest expect error type 
Javascript :: async react setstate 
Javascript :: import applymiddleware 
Javascript :: killall node windows 
Javascript :: mongoose find by and delete 
Javascript :: validate password regex 
Javascript :: js getelementbyid 
Javascript :: .ignore file nodejs 
Javascript :: angular for loop 
Javascript :: js onload 
Javascript :: mysql json array contains 
Javascript :: local storage ha 
Javascript :: select checked checkboxes javascript 
Javascript :: how to validate the textbox using jquery 
Javascript :: how to find all permutations of an array with javascript 
Javascript :: currency convertor api in javascript 
Javascript :: jquery input only integers 
Javascript :: npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! functions@ lint: `tslint --project tsconfig.json` 
Javascript :: $(this).text() in jquery return white space 
Javascript :: return fetch javascript 
Javascript :: checkvalidity 
Javascript :: javascript string contains string 
Javascript :: pxijs text 
Javascript :: url regex javascript 
Javascript :: chrome add a javascript bookmark 
Javascript :: format a date moment 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =