Remove obsolete advice about doubling backslashes in regex escapes.
authorTom Lane
Tue, 3 Nov 2015 16:57:56 +0000 (11:57 -0500)
committerTom Lane
Tue, 3 Nov 2015 16:58:03 +0000 (11:58 -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 290ba52e7ec1d9427fd8b9f5729cadca1a4ccb8f..ecca7922acec3cbb73277313afb0b770e65bcc78 100644 (file)
@@ -4642,16 +4642,6 @@ SELECT foo FROM regexp_split_to_table('the quick brown fox', E'\\s*') AS foo;
     Non-capturing parentheses do not define subexpressions.
    
 
-   
-    
-     Keep in mind that an escape's leading \ will need to be
-     doubled when entering the pattern as an SQL string constant.  For example:
-
-'123' ~ E'^\\d{3}' true
-
-    
-   
-
    
     Regular Expression Character-entry Escapes