Re: please help me on regular expression

From: Dirk Jagdmann <jagdmann(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: please help me on regular expression
Date: 2010-02-03 19:43:03
Message-ID: 5d0f60991002031143t404064e6m597dd0eb187cbf62@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Be careful when working with backslashes and regular expressions for
the proper (double) escaping!

# select '70a5' ~ e'\\d+\.\\d+';
?column?
----------
t
(1 row)

# select '70a5' ~ e'\\d+\\.\\d+';
?column?
----------
f
(1 row)

# select '70.5' ~ e'\\d+\\.\\d+';
?column?
----------
t

--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tena Sakai 2010-02-03 20:32:11 Re: please help me on regular expression
Previous Message Tena Sakai 2010-02-03 16:35:57 Re: please help me on regular expression