Re: please help me on regular expression

From: Lars Gustafsson <gumse(at)mac(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: please help me on regular expression
Date: 2010-02-03 21:33:43
Message-ID: C40F84E4-6202-4A67-A1FA-D412D3D09F7F@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Some people, when confronted with a problem, think "I know, I'll use
regular expressions." Now they have two problems. — Jamie Zawinski

3 feb 2010 kl. 21.32 skrev Tena Sakai:

> 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
>
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message John Lister 2010-02-04 21:59:37 Partitioning improvements query
Previous Message Tena Sakai 2010-02-03 20:32:11 Re: please help me on regular expression