Checking regex pattern validity

From: David Garamond <lists(at)zara(dot)6(dot)isreserved(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Checking regex pattern validity
Date: 2004-09-15 06:58:04
Message-ID: 4147E7FC.9060208@zara.6.isreserved.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a function like IS_VALID_REGEX() to check whether a pattern is
valid (i.e. it compiles)? I'm storing a list of regex patterns in a
table. It would be nice to be able to add a CHECK constraint to ensure
that all the regexes are valid.

If there isn't any, can I suggest Postgres add one? Although I know this
can probably be done in plpgsql using exception handling, or done in
plperl or plruby.

--
dave

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marcel Boscher 2004-09-15 08:14:53 Tsearch2 adding additional dictionaries
Previous Message Sim Zacks 2004-09-15 06:30:53 8.0 postgres book??