integer only sposix/regex - Mailing list pgsql-general

From rodeored
Subject integer only sposix/regex
Date
Msg-id 9958fe01-fd4d-46be-b488-f48ce777960f@j9g2000prh.googlegroups.com
Whole thread Raw
Responses Re: integer only sposix/regex
List pgsql-general
I'm trying to search phone numbers for digits. Unfortunately, the
validation has been sloppy and the numbers are not just numbers, they
also have dashes and probably other stuff.
I would like the search to ignore anything but integers

WHERE (a.phone1 ~* '.*626.*' OR a.phone2 ~* '.*626.*' OR a.phone2 ~*
'.*626.*')

pgsql-general by date:

Previous
From: Sim Zacks
Date:
Subject: Re: Custom Fields Database Architecture
Next
From: Steve Atkins
Date:
Subject: Re: integer only sposix/regex