Re: please help me on regular expression

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

Thank you, Dirk.

Regards,

Tena Sakai
tsakai(at)gallo(dot)ucsf(dot)edu

On 2/3/10 11:43 AM, "Dirk Jagdmann" <jagdmann(at)gmail(dot)com> wrote:

> 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Lars Gustafsson 2010-02-03 21:33:43 Re: please help me on regular expression
Previous Message Dirk Jagdmann 2010-02-03 19:43:03 Re: please help me on regular expression