Re: Regular expression. How to disable ALL meta-character

From: David Gagnon <dgagnon(at)siunik(dot)com>
To: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Regular expression. How to disable ALL meta-character
Date: 2005-04-20 18:05:37
Message-ID: 426699F1.9020008@siunik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Scott,

>I would generally scrub the input before it go to postgresql. Basically
>do a simple string_replace type function that replaces anything that
>ISN'T alphanum with nothing.
>
>
>
If I change the original string the user may not get what he expects as
result. abc[d] is not the samething than abcd... am I right?

Thanks for your help
/David

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A. Cropi 2005-04-20 18:27:13 electronic-izing unicode texts
Previous Message Scott Marlowe 2005-04-20 18:05:18 Re: Regular expression. How to disable