Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

phone number regex angular

Validators.pattern('(([+][(]?[0-9]{1,3}[)]?)|([(]?[0-9]{4}[)]?))s*[)]?[-s.]?[(]?[0-9]{1,3}[)]?([-s.]?[0-9]{3})([-s.]?[0-9]{3,4})')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #phone #number #regex #angular
ADD COMMENT
Topic
Name
6+1 =