Re: POSIX RE starting with a ( - Mailing list pgsql-general

From Nick Barr
Subject Re: POSIX RE starting with a (
Date
Msg-id 411A3715.90105@chuckie.co.uk
Whole thread Raw
In response to Re: POSIX RE starting with a (  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: POSIX RE starting with a (
Next
From: Stephan Szabo
Date:
Subject: Re: the behaviour of timestamp on postgres.