pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Gagnon <dgagnon@siunik.com>
To: pgsql-jdbc@postgresql.org
Subject: OT - Validating Regular Expression in java
Date: Thu, 04 Nov 2004 10:07:29 -0500
Message-ID: <418A45B1.5080908@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



view thread (2+ messages)  latest in thread

Message-ID: <418A45B1.5080908@siunik.com>
Permalink:  ../418A45B1.5080908@siunik.com/
Also on:    postgresql.org/message-id/418A45B1.5080908@siunik.com

 · 

reply

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 Regular Expression in java
  In-Reply-To: <418A45B1.5080908@siunik.com>
  References: <418A45B1.5080908@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