Skip to content
Snippets Groups Projects
Commit ae793ff6 authored by Tom Lane's avatar Tom Lane
Browse files

Fix incorrect backslashing in regexp example, per Robert Treat.

parent 768eaf14
No related branches found
No related tags found
No related merge requests found
<!--
$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 (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment