Re: Validating user-input to be inserted in regular expressions

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: Vincenzo Ciancia <vincenzo_yahoo_addressguard-gmane(at)yahoo(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Validating user-input to be inserted in regular expressions
Date: 2005-01-25 14:06:33
Message-ID: 515D471A-6EDA-11D9-91EA-000D933565E8@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jan 25, 2005, at 8:48 AM, Vincenzo Ciancia wrote:

> Vincenzo Ciancia wrote:
>
>> Should I find every
>> possible character in the documentation for regular expressions?
>
> Is the answer trivial? I checked the manual and the FAQ, and googled
> for the
> answer, but I didn't find it. Is there a more appropriate place where
> I can
> ask my question?

Yes, this is a fine place to ask your question. Sometimes it does take
a day or two to get an answer. Will quote_literal do what you want?

http://www.postgresql.org/docs/8.0/interactive/functions-string.html

Search on that page for quote_literal.

Sean

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard_D_Levine 2005-01-25 14:10:29 Re: EMBEDDED PostgreSQL
Previous Message Vincenzo Ciancia 2005-01-25 13:48:08 Re: Validating user-input to be inserted in regular expressions