| From: | Erik Jones <erik(at)myemma(dot)com> |
|---|---|
| To: | weigelt(at)metux(dot)de |
| Cc: | pgsql-sql <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: Finding broken regex'es |
| Date: | 2007-10-02 21:36:55 |
| Message-ID: | 51E80F93-35D0-41A0-B9C0-A256A806C971@myemma.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On Oct 2, 2007, at 3:23 PM, Enrico Weigelt wrote:
>
> Hi folks,
>
>
> I'm looking for some way to find broken regex'es in some column
> to kick them off. For now I'm regularily fetching all regexes
> from an PHP script, try an preg_match() and so find the broken
> ones to later remove them.
>
> Is there any way to do this directly within the db ?
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.
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Frost | 2007-10-03 00:20:08 | Why does the sequence skip a number with generate_series? |
| Previous Message | Enrico Weigelt | 2007-10-02 20:23:14 | Finding broken regex'es |