Re: Regex

From: "rlee0001" <robeddielee(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Regex
Date: 2006-02-06 23:28:19
Message-ID: 1139268499.007461.252150@z14g2000cwz.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If your version does not support regexp_replace(), I have written a
similar function for easlier versions of postgresql using pl/pgsql
called regexp_replacex(). You can find it by searching google groups.
As the thread there points out, the function I wrote doesn't treat
NULLs properly as posted and there are probably other issues as well.
You are free to use it anyways at your own risk.

If your version of PostgreSQL does support the regexp_replace()
function then you should use it instead as Tom Lane pointed out.

-Robert

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Uwe C. Schroeder 2006-02-06 23:40:01 Re: Any way to make PG driver obey PrintWarn?
Previous Message Niklas Johansson 2006-02-06 22:39:50 Re: SELECT with REAL...