pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas <maps.on@gmx.net>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Is there a way to remove every character but numbers?
Date: Sun, 05 Feb 2012 14:47:41 +0100
Message-ID: <4F2E887D.3040108@gmx.net> (raw)

Hi,

I need to clean up a text column so that it just contains numbers or the 
"+" sign if it is the first character of the string.

Well, it is needed to normalise up a phone number column.
So it'd be great if the "+" could be transformed in "00" in the same step.



view thread (2+ messages)  latest in thread

Message-ID: <4F2E887D.3040108@gmx.net>
Permalink:  ../4F2E887D.3040108@gmx.net/
Also on:    postgresql.org/message-id/4F2E887D.3040108@gmx.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: maps.on@gmx.net
  Subject: Re: Is there a way to remove every character but numbers?
  In-Reply-To: <4F2E887D.3040108@gmx.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