From: Janning Vygen <vygen@gmx.de>
To: pgsql-sql@postgresql.org
Subject: Is there an easy way to normalize-space with given string functions
Date: Fri, 23 Apr 2004 00:59:13 +0200
Message-ID: <200404230059.14221.vygen@gmx.de> (raw)
Hi,
i am looking for something like
$ SELECT btrim(replace(' too many spaces! ', '\s+',' '), '');
too many spaces
i searched the function list and tried to combine to or more functions, but i
miss a replace function which uses regular expressions.
Do i have to write my own function or did i miss something? trimming is well
supported at the start and end of string, but no trimmin in the middle seems
to be possible.
kind regards
janning
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: vygen@gmx.de
Subject: Re: Is there an easy way to normalize-space with given string functions
In-Reply-To: <200404230059.14221.vygen@gmx.de>
* 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