Re: matching against a list of regexp?

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: matching against a list of regexp?
Дата
Msg-id CABvLTWFpWVjSkQYagj3fjxHqbV2EVY7tw=7DFoBcqpA3ixWonQ@mail.gmail.com
обсуждение исходный текст
Ответ на matching against a list of regexp?  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
On Thu, Oct 27, 2011 at 9:18 AM, Gauthier, Dave <dave.gauthier@intel.com> wrote:
> I need to be able to select all records with a col value that matches any of
> a list of regexp.  Sort of like...
>
> select a,b,c from foo where d ~ ('^xyz','blah','shrug$');

WHERE d ~ '^xyz|blah|shrug$'


--
Regards,
Richard Broersma Jr.

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

Предыдущее
От: "Gauthier, Dave"
Дата:
Сообщение: matching against a list of regexp?
Следующее
От: Venkat Balaji
Дата:
Сообщение: Re: Are pg_xlog/* fiels necessary for PITR?