From: Mario Splivalo <mario.splivalo@mobart.hr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Postgres regexp matching failure?
Date: Thu, 07 Sep 2006 12:32:15 +0200
Message-ID: <1157625135.3209.9.camel@localhost.localdomain> (raw)
In-Reply-To: <25029.1157469774@sss.pgh.pa.us>
References: <1157451491.27799.6.camel@localhost.localdomain>
<bf05e51c0609050642p590b8a7euc581ffd52119e4ce@mail.gmail.com>
<1157465870.27799.39.camel@localhost.localdomain>
<25029.1157469774@sss.pgh.pa.us>
On Tue, 2006-09-05 at 11:22 -0400, Tom Lane wrote:
> Mario Splivalo <mario.splivalo@mobart.hr> writes:
> > So, I guess it's obvious that postgres doesn't treat regular expressions
> > the same way as java/perl/pyton/php/awk/sed do...
>
> When you get into stuff as arcane as word-boundary constraints, you'll
> find that regexes are not NEARLY as well standardized as that flippant
> complaint suggests. For penance, actually try it in all six of those
> languages and report back.
So I did, and I was mistaken the first time. Java, perl, python and php
treat regexpes differently than awk/sed and differently than tcl. I can
post source snippets and results here if anyone is interested in those.
> Postgres' regexp code is the same as Tcl's (it's Henry Spencer's package)
> and if you check TFM you will find out that \y, or possibly \M, is what
> you want.
Thnx, I missed that part that 'postgres has same regexp code as Tcl'.
Mike
--
Mario Splivalo
Mob-Art
mario.splivalo@mobart.hr
"I can do it quick, I can do it cheap, I can do it well. Pick any two."
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mario.splivalo@mobart.hr, tgl@sss.pgh.pa.us
Subject: Re: Postgres regexp matching failure?
In-Reply-To: <1157625135.3209.9.camel@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox