aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-05-01 15:57:59 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-05-01 15:57:59 +0000
commitae793ff63cb9167ea6d0f24ca018ffabad157ece (patch)
tree7c84f883e9c72dae9baf11785be1eb704823a277
parent768eaf14163fb89d4c2b395cbf4a5eb016d0c0b3 (diff)
downloadpostgresql-ae793ff63cb9167ea6d0f24ca018ffabad157ece.tar.gz
postgresql-ae793ff63cb9167ea6d0f24ca018ffabad157ece.zip
Fix incorrect backslashing in regexp example, per Robert Treat.
-rw-r--r--doc/src/sgml/ref/create_domain.sgml6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/create_domain.sgml b/doc/src/sgml/ref/create_domain.sgml
index b07f571c793..89b51aa76db 100644
--- a/doc/src/sgml/ref/create_domain.sgml
+++ b/doc/src/sgml/ref/create_domain.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.20 2005/01/04 00:39:53 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.21 2005/05/01 15:57:59 tgl Exp $
PostgreSQL documentation
-->
@@ -167,8 +167,8 @@ where <replaceable class="PARAMETER">constraint</replaceable> is:
<programlisting>
CREATE DOMAIN us_postal_code AS TEXT
CHECK(
- VALUE ~ '^\d{5}$'
-OR VALUE ~ '^\d{5}-\d{4}$'
+ VALUE ~ '^\\d{5}$'
+OR VALUE ~ '^\\d{5}-\\d{4}$'
);
CREATE TABLE us_snail_addy (