Re: SUBSTRING for a regular expression

Поиск
Список
Период
Сортировка
От
Тема Re: SUBSTRING for a regular expression
Дата
Msg-id 3659.192.168.123.254.1089129230.squirrel@$HOSTNAME
обсуждение исходный текст
Ответ на SUBSTRING for a regular expression  (<btober@computer.org>)
Список pgsql-general
>
> SELECT
>   SUBSTRING(description FROM '(.*), \\d{1,3},') AS vname,
>   SUBSTRING(description FROM '.*, (\\d{1,3}),') AS age,
>   SUBSTRING(description FROM '\\d{1,3}, of (.*?),? was charged') AS
> address, SUBSTRING(description FROM ' was charged ([^ ]+)') AS dow,
>   SUBSTRING(description FROM ' was charged [^ ]+ with (.+)') AS charge
> FROM police_log;

Aha! The old double-slash escape. Thank you very much.

--Berend Tober




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

Предыдущее
От: "Chris Smith"
Дата:
Сообщение: Re: Interpreting query plan
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Do we need more emphasis on backup?