Re: New string functions; initdb required

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: New string functions; initdb required
Дата
Msg-id 3D08979B.120BE1B3@fourpalms.org
обсуждение исходный текст
Ответ на New string functions; initdb required  (Thomas Lockhart <thomas@pgsql.com>)
Список pgsql-hackers
Thanks for the info! I have a question...

>  As usual: ( ) + * [ ] |
>  Instead of dot . there is underscore _
>  There is % to mean .* just like LIKE
>  There is no ? or ^ or $
>  Regular expressions match the whole string, as if there were an
>  implicit ^ before and $ after the pattern. You have to add % if
>  you want to match anywhere in a string.

Hmm. So if there are no explicit anchors then there must be a slightly
different syntax for the regular-expression version of the substring()
function? Otherwise, substrings would always have to start from the
first character, right?

Percents and underscores carried over from LIKE are really annoying.
I'll think about implementing an expression rewriter to convert SQL99 to
our modern regexp syntax.
                    - Thomas


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

Предыдущее
От: Bill Huang
Дата:
Сообщение: Re: [PATCHES] Chinese GB18030 support is implemented!
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Making serial survive pg_dump