Re: large document multiple regex

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: large document multiple regex
Дата
Msg-id b42b73150702020900o25e1ed55t26e2331cb303ebf2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: large document multiple regex  (Jim Nasby <decibel@decibel.org>)
Ответы Re: large document multiple regex  (David Fetter <david@fetter.org>)
Список pgsql-general
On 2/1/07, Jim Nasby <decibel@decibel.org> wrote:
> Have you thought about something like ~ '(first_string|second_string|
> third_string)'? Obviously your example would be more complex, but I
> believe that with careful crafting, you can get regex to do a lot
> without resorting to multiple passes.

that doesn't work...i researched the problem further and found that
postgresql regex implementation has the built in limitation to quit
scanning after the first matched group (this is noted in the
documentation).  There is no way that I can see to extract two or more
non contiguous text chunks in a single regex.

To do it properly, you need to have the sophistication of perl regex
with it's magic variables.

merlin

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Predicted lifespan of different PostgreSQL branches
Следующее
От: "Rohit Prakash Khare"
Дата:
Сообщение: Can a database be restored successfully after new installation.