Fix incorrect backslashing in regexp example, per Robert Treat.

This commit is contained in:
Tom Lane 2005-05-01 15:57:59 +00:00
parent 768eaf1416
commit ae793ff63c
1 changed files with 3 additions and 3 deletions

View File

@ -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 PostgreSQL documentation
--> -->
@ -167,8 +167,8 @@ where <replaceable class="PARAMETER">constraint</replaceable> is:
<programlisting> <programlisting>
CREATE DOMAIN us_postal_code AS TEXT CREATE DOMAIN us_postal_code AS TEXT
CHECK( CHECK(
VALUE ~ '^\d{5}$' VALUE ~ '^\\d{5}$'
OR VALUE ~ '^\d{5}-\d{4}$' OR VALUE ~ '^\\d{5}-\\d{4}$'
); );
CREATE TABLE us_snail_addy ( CREATE TABLE us_snail_addy (