Re: POSIX Regular Expression question

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: POSIX Regular Expression question
Дата
Msg-id 20050906153356.GD30161@wolff.to
обсуждение исходный текст
Ответ на Re: POSIX Regular Expression question  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-sql
On Mon, Sep 05, 2005 at 16:19:28 +0200, Peter Eisentraut <peter_e@gmx.net> wrote:
> Am Montag, 5. September 2005 15:57 schrieb Aldor:
> > I want to get out a string only with characters A-Za-z.
> > Any idea how to do this in Postgres with POSIX Regex?
> 
> Presumably,
> 
>     colname ~ '^[A-Za-z]*$'
> 
> If you want to be independent of locale issues, then you'd have to enumerate 
> all the letters instead of using a range specification.

Or use:

colname ~ '^[[:alpha:]]*$'


В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Help with UNION query
Следующее
От: Leon Torres
Дата:
Сообщение: Re: Recommendation on bytea or blob for binary data like images