Re: POSIX RE starting with a (

Поиск
Список
Период
Сортировка
От Nick Barr
Тема Re: POSIX RE starting with a (
Дата
Msg-id 411A3715.90105@chuckie.co.uk
обсуждение исходный текст
Ответ на Re: POSIX RE starting with a (  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Nick Barr <nicky@chuckie.co.uk> writes:
>
>>intranet=# select track_name from ms_track where track_name ~ '^\(';
>>ERROR:  invalid regular expression: parentheses () not balanced
>
>
> You've forgotten that the string-literal parser will eat one level of
> backslashing.  You need
>
> intranet=# select track_name from ms_track where track_name ~ '^\\(';
>
> to get that backslash into the regex parser.
>
>             regards, tom lane
>
>
>

Doh,

Thanks guys.


Nick


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: POSIX RE starting with a (
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: the behaviour of timestamp on postgres.