Re: How to clean up phone-numbers with regex? - Mailing list pgsql-sql

From David G Johnston
Subject Re: How to clean up phone-numbers with regex?
Date
Msg-id 1400514732379-5804493.post@n5.nabble.com
Whole thread Raw
In response to Re: How to clean up phone-numbers with regex?  (Steve Crawford <scrawford@pinpointresearch.com>)
List pgsql-sql
Steve Crawford wrote
> On 05/19/2014 01:54 AM, Andreas wrote:
> 
>>
>> Second but similar question:
>> How can I select records that have fields that contain characters not 
>> included in a given alphabet?
>> E.G. find fields that contain some char not in 0-9,a-z,A-Z, +-()/?
>>
> See regexp_match on the above-referenced page.
> 
> Cheers,
> Steve

Actually, section "9.7.3. POSIX Regular Expressions" - specifically table
9-11 at the beginning of that section - is the most common way to perform
the tests in a where clause.  regexp_matches(...) is for when you want to
extract data.

David J.




--
View this message in context:
http://postgresql.1045698.n5.nabble.com/How-to-clean-up-phone-numbers-with-regex-tp5804450p5804493.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



pgsql-sql by date:

Previous
From: Rob Sargent
Date:
Subject: Re: How to clean up phone-numbers with regex?
Next
From: Dariyoosh Dariyoosh
Date:
Subject: Question about Array data type in PostgreSQL and their link with hash table concept