Re: 7.2 search/replace pl/pgsql - Mailing list pgsql-novice

From Josh Berkus
Subject Re: 7.2 search/replace pl/pgsql
Date
Msg-id 200304061115.44945.josh@agliodbs.com
Whole thread Raw
In response to Re: 7.2 search/replace pl/pgsql  (Nabil Sayegh <postgresql@e-trolley.de>)
List pgsql-novice
Nabil,
> Great, exactly what i was looking for.
>
> Any idea how to use subexpressions ?
> like:
>
> $_="<A href=\"blah\">"
> s/"[^"]*"/$1/

You could pick up a copy of "Leaning Perl".   PL/perl implements your host
system's perl library.

Keep in mind, though that any single quotes or backslashes in your expression
will have to be escaped in your function.

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


pgsql-novice by date:

Previous
From: eurlix
Date:
Subject: How to see how much memory is used ?
Next
From: Vittorio Zuccala'
Date:
Subject: postgres start failed