Skip site navigation (1) Skip section navigation (2)

Re: Postgres regexp matching failure?

From: Mario Splivalo <mario(dot)splivalo(at)mobart(dot)hr>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Postgres regexp matching failure?
Date: 2006-09-05 14:16:35
Message-ID: 1157465795.27799.37.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-sql
On Tue, 2006-09-05 at 10:11 -0400, Tom Lane wrote:
> Mario Splivalo <mario(dot)splivalo(at)mobart(dot)hr> writes:
> > Now, here is what happens if I try this in postgres:
> 
> > pulitzer2=# select '+mario' ~ '^\s*(?:[\+|-]|(?:[sS][tT][oO][pP]\b)).*$';
> 
> I'm thinking you've forgotten to double your backslashes.
> 

That was the first thing I tried :)

What confused me was the difference I get when using python, or perl, or
Java, or any other regexp 'matcher', therefore I asked for help here.

	Mario
-- 
Mario Splivalo
Mob-Art
mario(dot)splivalo(at)mobart(dot)hr

"I can do it quick, I can do it cheap, I can do it well. Pick any two."



In response to

pgsql-sql by date

Next:From: Mario SplivaloDate: 2006-09-05 14:17:50
Subject: Re: Postgres regexp matching failure?
Previous:From: Tom LaneDate: 2006-09-05 14:11:44
Subject: Re: Postgres regexp matching failure?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group