Re: Postgres regexp matching failure?

From: "Aaron Bono" <postgresql(at)aranya(dot)com>
To: mario(dot)splivalo(at)mobart(dot)hr
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Postgres regexp matching failure?
Date: 2006-09-05 13:42:38
Message-ID: bf05e51c0609050642p590b8a7euc581ffd52119e4ce@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 9/5/06, Mario Splivalo <mario(dot)splivalo(at)mobart(dot)hr> wrote:
>
>
> pulitzer2=# select 'stop works' ~ '^\s*(?:[\
> +|-]|(?:[sS][tT][oO][pP]\b)).*$';
> ?column?
> ----------
> f
> (1 row)
>
> Here, postgres should return true, but it gives me false.

\b is a back-space - is that what you are wanting there? If I remove it I
get true.

==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
http://codeelixir.com
==================================================================

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2006-09-05 14:11:44 Re: Postgres regexp matching failure?
Previous Message Andrew Sullivan 2006-09-05 10:54:53 Re: pg_dump