Re: POSIX Regular Expression question

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Aldor <an(at)mediaroot(dot)de>, pgsql-sql(at)postgresql(dot)org
Subject: Re: POSIX Regular Expression question
Date: 2005-09-05 16:07:15
Message-ID: 200509051807.17320.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Am Montag, 5. September 2005 17:13 schrieb Alvaro Herrera:
> Note that [:alpha:] and such character classes are defined by POSIX to
> be locale independent:
>
> alvherre=# select 'á' ~ '[a-z]';
> ?column?
> ----------
> f
> (1 fila)
>
> alvherre=# select 'á' ~ '[[:alpha:]]';
> ?column?
> ----------
> t
> (1 fila)

I don't think this addresses the concern I intended to raise. The first query
should succeed for all letters between a and z, the second should succeed for
all letters. Neither is guaranteed to succeed only for all "normal" Latin
letters a, b, c, ... z.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2005-09-05 16:15:21 Re: POSIX Regular Expression question
Previous Message Peter Eisentraut 2005-09-05 15:46:43 Re: POSIX Regular Expression question