Re: Match against a column of regexes?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Match against a column of regexes?
Дата
Msg-id 27739.1571383617@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Match against a column of regexes?  (Stephen Froehlich <s.froehlich@cablelabs.com>)
Ответы RE: Match against a column of regexes?
Список pgsql-novice
Stephen Froehlich <s.froehlich@cablelabs.com> writes:
> I was wondering if there was an elegant way to match a given string against a column of regexes within PostgreSQL?
I'monly working with a few tens of lines, so I can read them all into R and examine them 1-by-1, but I thought I would
ask.

Something like

    ... WHERE mystring ~ ANY (SELECT regex FROM regexes)

should do.

            regards, tom lane



В списке pgsql-novice по дате отправления:

Предыдущее
От: Stephen Froehlich
Дата:
Сообщение: Match against a column of regexes?
Следующее
От: Stephen Froehlich
Дата:
Сообщение: RE: Match against a column of regexes?