Re: Method to detect certain characters in column?

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: ianmmeyer(at)mac(dot)com
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Method to detect certain characters in column?
Date: 2008-06-24 03:54:04
Message-ID: 48606FDC.60406@wildenhain.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Ian,

Ian Meyer wrote:
> Ah, so I forgot to mention the one caveat to this (sorry!) was there
> was a ton of punctuation/spaces and other ilk.. so this is what I came
> up with:
>
> bco=# select name from member where not (name ~ '^[A-Za-z0-9[:punct:] ]*$');
> name
> ----------------------
> Señorita Lolita
> Long Pig
> täkäurgh
> blåbärsöl
> fuchér MkII
> fuchér ver2.0
> Gûm-ishi Ashi Gurum
> kängnäve
> Fuchér-version 2.1
> fuchÃ(c)r

Uh, is that really the name as it should be? To me it
looks much more like UTF-8 stored in SQL-Ascii. Maybe
converting it correctly would help?

Cheers
Tino

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Shulman 2008-06-24 03:57:21 what are rules for?
Previous Message Tino Wildenhain 2008-06-24 03:49:35 Re: limits?