Re: Quick Regex Question

Поиск
Список
Период
Сортировка
От Florian Aumeier
Тема Re: Quick Regex Question
Дата
Msg-id 476A3F80.5020004@mediaventures.de
обсуждение исходный текст
Ответ на Quick Regex Question  (Howard Cole <howardnews@selestial.com>)
Список pgsql-general
hi
> select 'Ho Ho Ho' ~* '^Ho'; returns true
> select 'Ho Ho Ho' ~* ' Ho'; returns true
> select 'Ho Ho Ho' ~* '[^ ]Ho'; returns false (Please note there is a
> space between ^ and ])

"A /bracket expression/ is a list of characters enclosed in []. It
normally matches any single character from the list (but see below). If
the list begins with ^, it matches any single character /not/ from the
rest of the list."

from:
http://www.postgresql.org/docs/8.3/static/functions-matching.html#POSIX-BRACKET-EXPRESSIONS

Regards
Florian

--
Media Ventures GmbH
Jabber-ID faumeier@mabber.de
Telefon +49 (0) 2236 480 10 22


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

Предыдущее
От: Howard Cole
Дата:
Сообщение: Quick Regex Question
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Quick Regex Question