Re: Looking for help with using regular expression match or perl language functions - Mailing list pgsql-general

From Tom Lane
Subject Re: Looking for help with using regular expression match or perl language functions
Date
Msg-id 28801.972491779@sss.pgh.pa.us
Whole thread Raw
In response to Looking for help with using regular expression match or perl language functions  ("Richard DeVenezia" <radevenz@ix.netcom.com>)
List pgsql-general
"Richard DeVenezia" <radevenz@ix.netcom.com> writes:
> What would be the pgsql statement  to get a regexp match such as $1 into a
> column ?
> ... In reality I am using much more
> convoluted and complicated regular expressions.

In that case I'd recommend you cut to the chase: just go directly to
plperl or pltcl, according to your preference.  Either one will offer
far more flexibility for text-mashing than is available from Postgres'
built-in functions.  We don't have a regsub function at all, and our
regexp matcher is pretty limited (it does ISO regexps only, not much
if you're used to perl or tcl).

plperl is fairly new and still suffering teething pains, so you might
have trouble getting it to build on your system.  pltcl is more stable.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: A rare error
Next
From: "Kevin O'Gorman"
Date:
Subject: Re: ok after months of freedom I'm suddenly back on the damnlist aga in