Please refer to this SO Post
example of a regular expression in jquery for phone numbers
/\(?([0-9]{3})\)?([ .-]?)([0-9]{3})\2([0-9]{4})/
- (123) 456 7899
- (123).456.7899
- (123)-456-7899
- 123-456-7899
- 123 456 7899
- 1234567899
are supported
More Related Contents:
- Phone number regular expressions exact format
- How to validate phone numbers using regex
- Regular Expression Validation For Indian Phone Number and Mobile number
- US Phone Number Verification
- How to extract all Yahoo emails from a .CSV file?
- Regular expression to remove fancy apostrophe [closed]
- Regular Expression for ” – ” and characters after [closed]
- What is a word boundary in regex?
- How to calculate the number of occurrence of a given character in each row of a column of strings?
- Escaping a forward slash in a regular expression
- How can I use a variable in the replacement side of the Perl substitution operator?
- When is \G useful application in a regex?
- Why doesn’t `\d` work in regular expressions in sed? [duplicate]
- Regex: Determine if two regular expressions could match for the same input?
- In regular expressions, what is a backtracking / back referencing?
- Regular expression for youtube links
- How can I use ‘Not Like’ operator in MongoDB
- Zero-Length regexes and infinite matches?
- Regex pattern for HH:MM:SS time string
- Why is this regex using lookbehinds invalid in R?
- Fully qualified domain name validation
- Fixing Catastrophic Backtracking in Regular Expression
- apache HTTP:X-Forwarded-Proto in .htaccess is causing redirect loop in dev environment
- Dollar sign in regular expression and new line character
- Regex for youtube URL
- What do \S, \W, \D stand for in regex?
- Using RegEX To Prefix And Append In Notepad++
- How to match the first word after an expression with regex?
- When is it best to use Regular Expressions over basic string splitting / substring’ing?
- Regex for field that allows numbers and spaces