From: David Gagnon <dgagnon@siunik.com>
To: pgsql-jdbc@postgresql.org
Subject: OT ? - Validating POSIX Regular Expression in Java
Date: Thu, 04 Nov 2004 10:13:27 -0500
Message-ID: <418A4717.3000202@siunik.com> (raw)
Hi all,
I know it's not directly the purpose of this list, so I apologize, but
I think you guys are the ones who can help me :-)
My web site offers a search which supports regular expression (POSIX).
I'm looking for a way to validate the regular expression in the
application before sending it the the DB. For now Postgresql throwing
an error on invalid regular expression.
I tried with the gnu-regexp frameworks, It works partly but it's not
full proof since an invalid caracter class like [[:awefaewf:]]* is not
flagged as an error but causes an error with Postgresql.
Any help on this matter will be appreciated. I'm sure it's a common
problem and have been addressed before ... I searched but haven't found
the answer yet.
Thanks for your help
/David
I
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: dgagnon@siunik.com
Subject: Re: OT ? - Validating POSIX Regular Expression in Java
In-Reply-To: <418A4717.3000202@siunik.com>
References: <418A4717.3000202@siunik.com>
* 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