Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex to check the phone number javascript

//To check that the phone number is of 10 digits
let regex=/^[0-9]{10}$/;
 
PREVIOUS NEXT
Tagged: #regex #check #phone #number #javascript
ADD COMMENT
Topic
Name
8+6 =