Re: POSIX RE starting with a (

From: Nick Barr <nicky(at)chuckie(dot)co(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: POSIX RE starting with a (
Date: 2004-08-11 15:11:17
Message-ID: 411A3715.90105@chuckie.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Nick Barr <nicky(at)chuckie(dot)co(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2004-08-11 15:15:03 Re: the behaviour of timestamp on postgres.
Previous Message Oliver Elphick 2004-08-11 15:07:00 Re: POSIX RE starting with a (