]> granicus.if.org Git - postgresql/commitdiff
Remove obsolete advice about doubling backslashes in regex escapes.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Nov 2015 16:57:56 +0000 (11:57 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Nov 2015 16:57:56 +0000 (11:57 -0500)
Standard-conforming literals have been the default for long enough that
it no longer seems necessary to go out of our way to tell people to write
regex escapes illegibly.

doc/src/sgml/func.sgml

index 4d482ec91f02949ec542aca51801698e60416009..60b9a090739ef4bc2e2b076a17ebad28ef5a04e4 100644 (file)
@@ -4656,16 +4656,6 @@ SELECT foo FROM regexp_split_to_table('the quick brown fox', E'\\s*') AS foo;
     Non-capturing parentheses do not define subexpressions.
    </para>
 
-   <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' ~ E'^\\d{3}' <lineannotation>true</lineannotation>
-</programlisting>
-    </para>
-   </note>
-
    <table id="posix-character-entry-escapes-table">
     <title>Regular Expression Character-entry Escapes</title>