Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WmPrM-000581-FE for pgsql-sql@arkaria.postgresql.org; Mon, 19 May 2014 15:52:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WmPrL-00038K-Pr for pgsql-sql@arkaria.postgresql.org; Mon, 19 May 2014 15:52:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WmPrL-00038C-27 for pgsql-sql@postgresql.org; Mon, 19 May 2014 15:52:15 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WmPrJ-0004DI-CE for pgsql-sql@postgresql.org; Mon, 19 May 2014 15:52:14 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WmPrI-0006gl-CV for pgsql-sql@postgresql.org; Mon, 19 May 2014 08:52:12 -0700 Date: Mon, 19 May 2014 08:52:12 -0700 (PDT) From: David G Johnston To: pgsql-sql@postgresql.org Message-ID: <1400514732379-5804493.post@n5.nabble.com> In-Reply-To: <537A26B5.3030309@pinpointresearch.com> References: <5379C6C1.5020904@gmx.net> <537A26B5.3030309@pinpointresearch.com> Subject: Re: How to clean up phone-numbers with regex? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 3.5 (+++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org 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. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql