integer only sposix/regex

Поиск
Список
Период
Сортировка
От rodeored
Тема integer only sposix/regex
Дата
Msg-id 9958fe01-fd4d-46be-b488-f48ce777960f@j9g2000prh.googlegroups.com
обсуждение исходный текст
Ответы Re: integer only sposix/regex
Список 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 по дате отправления: