Use:
SELECT telephone_number
FROM table
WHERE telephone_number REGEXP '^1[() -]*[[:digit:]]{3}[() -]*[[:digit:]]{3}[() -]*[[:digit:]]{4}$';
Reference:
More Related Contents:
- How to do a regular expression replace in MySQL?
- MySQL Split Comma Separated String Into Temp Table
- MySQL strip non-numeric characters to compare
- How to extract two consecutive digits from a text field in MySQL?
- How to extract the nth word and count word occurrences in a MySQL string?
- How to remove all non-alpha numeric characters from a string in MySQL?
- How to count words in MySQL / regular expression replacer?
- #1139 – Got error ‘repetition-operator operand invalid’ from regexp
- Does MySQL Regexp support Unicode matching
- How do I refer to capture groups in a MySQL regex?
- MySQL SELECT LIKE or REGEXP to match multiple words in one record
- Is it Possible to Enforce Data Checking in MySQL using Regular expression
- How to regex in a MySQL query
- remove all numeric characters from column mysql
- How to use IN & NOT IN same query [closed]
- MySQL: Large VARCHAR vs. TEXT?
- Check overlap of date ranges in MySQL
- Multiple-column foreign key in MySQL?
- Get the latest date from grouped MySQL data
- UUID performance in MySQL?
- MySQL: NULL vs “”
- MySQL update a joined table
- Optimal MySQL settings for queries that deliver large amounts of data?
- mysql configuration stops at “starting server”
- What is the best way to delete old rows from MySQL on a rolling basis?
- mysql equivalent data types
- Is there an SQLite equivalent to MySQL’s DESCRIBE [table]?
- Using MySQL triggers to log all table changes to a secondary table
- MySQL search json value by key in array
- apache mysql – “packets out of order” on 3306