Re: regex help wanted

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: regex help wanted
Дата
Msg-id 23482.1366900346@sss.pgh.pa.us
обсуждение исходный текст
Ответ на regex help wanted  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Ответы Re: regex help wanted
Re: regex help wanted
Список pgsql-general
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:
> What I don't understand is: Why does the following return a
> substring ?

>     select substring ('junk $<allergy::test::99>$ junk' from '\$<[^<]+?::[^:]+?>\$');

There's a perfectly valid match in which [^<]+? matches allergy::test
and [^:]+? matches 99.

            regards, tom lane


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Replication terminated due to PANIC
Следующее
От: Thom Brown
Дата:
Сообщение: Re: regex help wanted