Re: Finding broken regex'es

From: Erik Jones <erik(at)myemma(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: weigelt(at)metux(dot)de, pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Finding broken regex'es
Date: 2007-10-03 05:43:16
Message-ID: 9F9943E3-5114-457A-ABE7-D41CBCAFFE93@myemma.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Oct 2, 2007, at 10:48 PM, Tom Lane wrote:

> Erik Jones <erik(at)myemma(dot)com> writes:
>> IIRC, if they're PERL compatible which it would seem from the php
>> function you're using, no. Postgres supports POSIX regexes but not
>> (right now anyway) PERL regexes.
>
> Actually what we support are Tcl (Henry Spencer) regexes, which are
> about as powerful as Perl's but have a few minor incompatibilities.
> Tcl and Perl regexes are both supersets of the POSIX requirements.
>

Excellent point of information. I was really just trying to focus on
why the Postgres regex engine wouldn't be equivalent to the matching
functionality of php's preg_* functions. One example would be look
behind assertions. Btw, am I crazy or do I remember someone
mentioning that support for Perl regexes possibly being added to
Postgres in the future.

Erik Jones

Software Developer | Emma®
erik(at)myemma(dot)com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2007-10-03 06:03:04 Re: Finding broken regex'es
Previous Message Tom Lane 2007-10-03 03:48:09 Re: Finding broken regex'es