Skip to content

Commit ae793ff

Browse files
committed
Fix incorrect backslashing in regexp example, per Robert Treat.
1 parent 768eaf1 commit ae793ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/ref/create_domain.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.20 2005/01/04 00:39:53 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.21 2005/05/01 15:57:59 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -167,8 +167,8 @@ where <replaceable class="PARAMETER">constraint</replaceable> is:
167167
<programlisting>
168168
CREATE DOMAIN us_postal_code AS TEXT
169169
CHECK(
170-
VALUE ~ '^\d{5}$'
171-
OR VALUE ~ '^\d{5}-\d{4}$'
170+
VALUE ~ '^\\d{5}$'
171+
OR VALUE ~ '^\\d{5}-\\d{4}$'
172172
);
173173

174174
CREATE TABLE us_snail_addy (

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