Re: Doing a regexp-based search/replace? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Doing a regexp-based search/replace?
Date
Msg-id 25088.1003431166@sss.pgh.pa.us
Whole thread Raw
In response to Doing a regexp-based search/replace?  (Steve Frampton <frampton@LinuxNinja.com>)
List pgsql-sql
Steve Frampton <frampton@LinuxNinja.com> writes:
> If this were a text file, I would use a sed expression such as:
> cat textfile | sed 's/-.*$//'
> I've been looking for a way to do this with PostgreSQL but so far haven't
> found a function that seems to be suitable.

Write a function in pltcl or plperl, either of which can mash text
strings with ease and abandon ...
        regards, tom lane


pgsql-sql by date:

Previous
From: Oleg Lebedev
Date:
Subject: COUNT func
Next
From: Oleg Lebedev
Date:
Subject: Re: [ADMIN] update in rule