Re: How to extract a substring using Regex

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: How to extract a substring using Regex
Дата
Msg-id DA2AB8BA-73D4-4668-AF0D-CA7B0B332EC3@seespotcode.net
обсуждение исходный текст
Ответ на How to extract a substring using Regex  ("Postgres User" <postgres.developer@gmail.com>)
Ответы Re: How to extract a substring using Regex  ("Postgres User" <postgres.developer@gmail.com>)
Список pgsql-general
On Aug 23, 2007, at 19:33 , Postgres User wrote:

> I'm new to Regex in Postgres.  Can someone give me a quick pointer on
> how I'd SELECT the substring between   '<name>'    and  '</name>'  in
> a field?

Check out regexp_replace:

http://www.postgresql.org/docs/8.2/interactive/functions-
matching.html#FUNCTIONS-POSIX-REGEXP

One of the forms of substring might work for you, too.

Michael Glaesemann
grzm seespotcode net



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

Предыдущее
От: "Postgres User"
Дата:
Сообщение: How to extract a substring using Regex
Следующее
От: "Postgres User"
Дата:
Сообщение: Re: How to extract a substring using Regex