Hello.


Probably there is a solution for your task. But for a pity

MySQL supports REGEXP only for comparison and nothing more.

A sad joke is that issues about phone numbers and regexps regularly

appear in the list, sometimes without any answer. However search in archives at:

  http://lists.mysql.com/mysql









Eric Jensen <[EMAIL PROTECTED]> wrote:

> Is there a way to return a value that has been modified via regular

> expressions?  For example, let's say I have a bunch of phone numbers. 

> Some of them were entered in like "(123) 456-7890" and some where

> entered in (123-456-7890".  I would like to only pull out the numbers

> from these fields.  I've looked at the mysql REGEXP type functions and

> they just return true or false.  I have run into many situations where

> returning a regular expression modified value would be very handy.  Only

> solution I have found so far is nested string replace functions.

> 

> Eric Jensen

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to