Re: Trim not working (PostgreSQL 9.1.2 on Win64)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Edson Richter <edsonrichter(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trim not working (PostgreSQL 9.1.2 on Win64)
Date: 2012-07-28 22:41:53
Message-ID: 6304.1343515313@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Edson Richter <edsonrichter(at)hotmail(dot)com> writes:
> If I do apply trim over the substring, no spaces are removed, and I
> cannot understand why.
> ...
> But using the regular expression matching "^\s*" and "\s*$" works, and
> spaces are removed:

I think what this means is that what you say are runs of spaces are no
such thing, but are some other whitespace character(s). Perhaps tabs,
or non-breaking spaces?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-07-28 23:18:32 Re: Trim not working (PostgreSQL 9.1.2 on Win64)
Previous Message Edson Richter 2012-07-28 22:20:40 Re: Trim not working (PostgreSQL 9.1.2 on Win64)