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? Tom Lane <tgl@sss.pgh.pa.us>
RE: Match against a column of regexes? Stephen Froehlich <s.froehlich@cablelabs.com>
Stephen Froehlich  writes:
> I was wondering if there was an elegant way to match a given string against a column of regexes within PostgreSQL?  I'm only 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
Дата:
От: Stephen Froehlich
Дата:
FAQ