Re: Referencing parts captured by round brackets in a regex in 8.4.13

From: Victor Yegorov <vyegorov(at)gmail(dot)com>
To: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Referencing parts captured by round brackets in a regex in 8.4.13
Date: 2013-03-22 15:13:58
Message-ID: CAGnEbog6_e7VV+8g0AiS-UtnNr_DHw2VUMKmt1Czi-dReqjrnA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2013/3/22 Alexander Farber <alexander(dot)farber(at)gmail(dot)com>:
> the result is correctly "true" now,
> but the warning is still there, why?
>
> # select 'axxxxxyz' ~ '(.)\\1\\1';
> WARNING: nonstandard use of \\ in a string literal
> LINE 1: select 'axxxxxyz' ~ '(.)\\1\\1';
> ^
> HINT: Use the escape string syntax for backslashes, e.g., E'\\'.
> ?column?
> ----------
> t
> (1 row)
>

Please, check this part of the docs (note the Caution):
http://www.postgresql.org/docs/8.4/static/sql-syntax-lexical.html#SQL-BACKSLASH-TABLE

--
Victor Y. Yegorov

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2013-03-22 15:22:21 Re: Referencing parts captured by round brackets in a regex in 8.4.13
Previous Message Alexander Farber 2013-03-22 15:08:09 Re: Referencing parts captured by round brackets in a regex in 8.4.13