pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo De León <rdeleonp@gmail.com>
To: PostgreSQL SQL List <pgsql-sql@postgresql.org>
Cc: PostgreSQL Admin <postgres@productivitymedia.com>
Subject: Re: Replace string
Date: Thu, 12 Apr 2007 00:29:13 -0500
Message-ID: <a55915760704112229r12f0afcdtabce08c48ca3583e@mail.gmail.com> (raw)
In-Reply-To: <461BF649.70204@productivitymedia.com>
References: <461BF649.70204@productivitymedia.com>

On 4/10/07, PostgreSQL Admin <postgres@productivitymedia.com> wrote:
> Hi,
>
> I want to replace a title with dashes and also remove punctuation.
>
> e.g,  The blue fox's fur. -> The-blue-fox-fur
>
>
> Thanks for any input,
> J

SELECT translate('The blue fox''s fur.', ' .''', '-')



view thread (4+ messages)  latest in thread

Message-ID: <a55915760704112229r12f0afcdtabce08c48ca3583e@mail.gmail.com>
Permalink:  ../a55915760704112229r12f0afcdtabce08c48ca3583e@mail.gmail.com/
Also on:    postgresql.org/message-id/a55915760704112229r12f0afcdtabce08c48ca3583e@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rdeleonp@gmail.com, postgres@productivitymedia.com
  Subject: Re: Replace string
  In-Reply-To: <a55915760704112229r12f0afcdtabce08c48ca3583e@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox