Reply to Re: Regular expression in MySQL (need to strip number fiel of spaces and then match).

Your name:

Reply:


Posted by Dave Fountain on 03/04/07 09:43

On Sun, 04 Mar 2007 09:36:52 +0000, Dave Fountain
<daveatdaveandsalcouk> wrote:

>On Thu, 01 Mar 2007 18:32:16 GMT, "David Smithz"
><dave1900@blueyonder.co.uk> wrote:
>
>>Ideally another way of doing this would be to use the regular expression in
>>a replace statement (currenlty playing around with this).
>>
>>e.g.
>>
>>SELECT REPLACE (mobile_number, ' ', '') FROM `mytable` WHERE 1 LIMIT 5
>>
>>the above works in removing the blank spaces, but if I could instead have a
>>regular expression to say, instead of just spaces, any non numercial
>>character, this would be good.
>>
>I know nothing about the topic but is there a function that allows you
>to *keep* numerical characters, then you would only have to check for
>10 cases?
Scrap that idea - I saw you could have non-telephone numbers in the
field, but you could also have problems if they wrote something like:
ring after 9 07777 33333 if you just remove the spaces.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация