Re: regexp question

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: regexp question
Дата
Msg-id
Pine.LNX.4.44.0302220255390.2067-100000@peter.localdomain
Ответ на
regexp question (Andy Kriger)
Список
Дерево обсуждения
regexp question "Andy Kriger" <akriger@greaterthanone.com>
Re: regexp question Tom Lane <tgl@sss.pgh.pa.us>
Re: regexp question Peter Eisentraut <peter_e@gmx.net>
Andy Kriger writes:

> select * from table where column ~ '.*\(blah.*\)'
> will return any row with characters-blah-characters
>
> Is there any way I can get just the blah.* portion of the string in my
> result?

Use the substring function.  See the documentation on pattern matching.

-- 
Peter Eisentraut   peter_e@gmx.net

В списке pgsql-general по дате отправления
От: Peter Eisentraut
Дата:
Сообщение: Re: system catalog
От: Neil Conway
Дата:
Сообщение: Re: escaping and sql injection
FAQ