Re: Double Backslash example patch - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Double Backslash example patch
Date
Msg-id 200312180358.hBI3wkj00743@candle.pha.pa.us
Whole thread Raw
In response to Double Backslash example patch  (David Fetter <david@fetter.org>)
List pgsql-patches
I have applied your additional example in the place Peter suggested.
Patch attached.

---------------------------------------------------------------------------

David Fetter wrote:
> Kind people,
>
> Please find enclosed a patch exemplifying typical use of the ARE
> Class-Shorthand Escapes®.  I believe it will help intrepid regex
> users. :)
>
> Cheers,
> D
> --
> David Fetter david@fetter.org http://fetter.org/
> phone: +1 510 893 6100    cell: +1 415 235 3778

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
Index: doc/src/sgml/func.sgml
===================================================================
RCS file: /cvsroot/pgsql-server/doc/src/sgml/func.sgml,v
retrieving revision 1.182
diff -c -c -r1.182 func.sgml
*** doc/src/sgml/func.sgml    16 Dec 2003 15:27:58 -0000    1.182
--- doc/src/sgml/func.sgml    18 Dec 2003 03:53:59 -0000
***************
*** 3134,3140 ****
     <note>
      <para>
       Keep in mind that an escape's leading <literal>\</> will need to be
!      doubled when entering the pattern as an SQL string constant.
      </para>
     </note>

--- 3134,3143 ----
     <note>
      <para>
       Keep in mind that an escape's leading <literal>\</> will need to be
!      doubled when entering the pattern as an SQL string constant.  For example:
! <programlisting>
! '123' ~ '^\\d{3}' <lineannotation>true</lineannotation>
! </programlisting>
      </para>
     </note>


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: fork/exec patch
Next
From: Kurt Roeckx
Date:
Subject: ISO year.