Re: problem with regexp (cant quote +)] - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: problem with regexp (cant quote +)]
Date
Msg-id 3F07364B.80804@wildenhain.de
Whole thread Raw
List pgsql-general
Hi Peter,

peter pilsl wrote:
>
> postgres 7.3.2:
>
> I wonder why the following expression fails. I came to this wondering why I
> could not search for + using the '~'-operator.
>
> select 'ok' where 'H+H'~'H\+H';
>

funny. but try

select 'ok' where 'H+H' ~ 'H[+]H';

Regards
Tino




pgsql-general by date:

Previous
From: peter pilsl
Date:
Subject: problem with regexp (cant quote +)
Next
From: Alvaro Herrera
Date:
Subject: Re: problem with regexp (cant quote +)