regular expression substittion function?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-general(at)postgresql(dot)org
Subject: regular expression substittion function?
Date: 2001-02-15 16:00:54
Message-ID: 20010215100054.A30423@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Are there any plans to provide a regular expression substitution function,
similar to translate but allowing more complex substitutions?

This is an example of what I want to use it for. I am using a query that
builds web urls from a couple of different types of data and then union
together. Some of the data is raw urls, and some is title information
that gets turn into search urls. The title information needs to be
massaged before being used in a url and it needs to be done in the query
if I want to do the union. The translate command could be used in my
particular case, but it will be very long, as I need to delete most
nonletter nondigit characters and change spaces to plusses. A regular
expression describing what I want would be much more compact.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-02-15 16:01:18 Re: regular expression substittion function?
Previous Message Tom Lane 2001-02-15 15:59:11 Re: regular expression substittion function?