Skip to content

Commit e9aec81

Browse files
committed
Please find enclosed a patch exemplifying typical use of the ARE
Class-Shorthand Escapes<C2><AE>. I believe it will help intrepid regex users. :) David Fetter
1 parent ed96bfd commit e9aec81

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.182 2003/12/16 15:27:58 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.183 2003/12/18 03:59:07 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -3134,7 +3134,10 @@ substring('foobar' from 'o(.)b') <lineannotation>o</lineannotation>
31343134
<note>
31353135
<para>
31363136
Keep in mind that an escape's leading <literal>\</> will need to be
3137-
doubled when entering the pattern as an SQL string constant.
3137+
doubled when entering the pattern as an SQL string constant. For example:
3138+
<programlisting>
3139+
'123' ~ '^\\d{3}' <lineannotation>true</lineannotation>
3140+
</programlisting>
31383141
</para>
31393142
</note>
31403143

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy