Re: patch adding new regexp functions

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: patch adding new regexp functions
Дата
Msg-id 45D5F1F4.7090502@dunslane.net
обсуждение исходный текст
Ответ на Re: patch adding new regexp functions  (David Fetter <david@fetter.org>)
Ответы Re: patch adding new regexp functions  (David Fetter <david@fetter.org>)
Список pgsql-patches
David Fetter wrote:
>>
>> The question is, what is the use case?  If there is one in Perl, can
>> this proposed function API support it?
>>
>
> Perl makes the following variables available in any regex match,
> although it optimizes some cases for when they're not there:
>
> $1, ... $n (captured matches in parentheses)
> $`         (pre-match)
> $'         (post-match)
> $&         (whole match)
>
>

Use of any of these is notoriously costly, BTW, especially pre-match and
post-match. See perlre man page.

cheers

andrew

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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: patch adding new regexp functions
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: patch adding new regexp functions