js regex validate phone number
My regex of choice is:
/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/im
Valid formats:
(123) 456-7890
(123)456-7890
123-456-7890
123.456.7890
1234567890
+31636363634
075-63546725
Also in JavaScript:
- Checking whether a value exists in an array javascript
- joudyhallo
- angularjs form validation on submit
- material ui grid react
- Error: node_modules/@angular/fire/database/interfaces.d.ts:2:10
- javascript open in new window not tab
- how to split a string in javascript
- how to get client.user.avatar
- 'userprofile/:id', ionic
- disemvowel javascript
- javascript get last element of array
- faker.js name
- javascript create 2d array
- three js get size of object
- how to remove backslash from string in javascript
- jest async test fetch api
- too many open files react native
- typeof array javascript
- jwt token example in node js
- encode url javascript
- [object Object]
- link in next js is refresh page
- convert array object to string javascript
- how to make an object stop at the end of your canvas p5js