diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-12-18 03:59:07 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-12-18 03:59:07 +0000 |
commit | e9aec81792441eafe2ee0987236f52ae39e726a5 (patch) | |
tree | 2cd7088571b0591d73d4fb14f45df83887fbef84 | |
parent | ed96bfde18293538761905b6b624b68424dd9d85 (diff) | |
download | postgresql-e9aec81792441eafe2ee0987236f52ae39e726a5.tar.gz postgresql-e9aec81792441eafe2ee0987236f52ae39e726a5.zip |
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
-rw-r--r-- | doc/src/sgml/func.sgml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 5724b9b2561..16ed17b118a 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.182 2003/12/16 15:27:58 petere Exp $ +$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.183 2003/12/18 03:59:07 momjian Exp $ PostgreSQL documentation --> @@ -3134,7 +3134,10 @@ substring('foobar' from 'o(.)b') <lineannotation>o</lineannotation> <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. + doubled when entering the pattern as an SQL string constant. For example: +<programlisting> +'123' ~ '^\\d{3}' <lineannotation>true</lineannotation> +</programlisting> </para> </note> |