pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Sharrett <jsharrett@tidemark.net>
To: pgsql-sql@postgresql.org
Subject: Re: how can I replace all instances of a pattern
Date: Tue, 26 Mar 2013 09:13:39 -0400
Message-ID: <CD7716CB.8A7D%jsharrett@tidemark.net> (raw)
In-Reply-To: <CD771612.8A7C%jsharrett@tidemark.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

Sorry, caught a typo.  Mytext1 is correctly replaced because only one
instance of the character (space) is in the string.

This deals with the correct characters but only does the first instance of
the character so the output is:

    'Mytext1'
    'Mytext 2'  (wrong)
    'Mytext-3'  (wrong)
    'My_text4'
    'My!text5'

view thread (5+ messages)  latest in thread

Message-ID: <CD7716CB.8A7D%jsharrett@tidemark.net>
Permalink:  ../CD7716CB.8A7D%25jsharrett@tidemark.net/
Also on:    postgresql.org/message-id/CD7716CB.8A7D%jsharrett@tidemark.net

 · 

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: jsharrett@tidemark.net
  Subject: Re: how can I replace all instances of a pattern
  In-Reply-To: <CD7716CB.8A7D%jsharrett@tidemark.net>

* 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