Please find enclosed a patch exemplifying typical use of the ARE
authorBruce Momjian
Thu, 18 Dec 2003 03:59:07 +0000 (03:59 +0000)
committerBruce Momjian
Thu, 18 Dec 2003 03:59:07 +0000 (03:59 +0000)
Class-Shorthand Escapes.  I believe it will help intrepid regex
users. :)

David Fetter

doc/src/sgml/func.sgml

index 5724b9b2561442a898f7336637ecb909d3fead15..16ed17b118ab0bdf92292a03209192fd157b4809 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -3134,7 +3134,10 @@ substring('foobar' from 'o(.)b')   o
    
     
      Keep in mind that an escape's leading \ 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:
+
+'123' ~ '^\\d{3}' true
+