Commit fc0b8935 authored by Tom Lane's avatar Tom Lane

Remove obsolete advice about doubling backslashes in regex escapes.

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.
parent a69b0b2c
...@@ -4656,16 +4656,6 @@ SELECT foo FROM regexp_split_to_table('the quick brown fox', E'\\s*') AS foo; ...@@ -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. Non-capturing parentheses do not define subexpressions.
</para> </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"> <table id="posix-character-entry-escapes-table">
<title>Regular Expression Character-entry Escapes</title> <title>Regular Expression Character-entry Escapes</title>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment