Quick Regex Question

Поиск
Список
Период
Сортировка
От Howard Cole
Тема Quick Regex Question
Дата
Msg-id 476A3C30.3060801@selestial.com
обсуждение исходный текст
Ответы Re: Quick Regex Question  (Florian Aumeier <faumeier@mediaventures.de>)
Re: Quick Regex Question  (Richard Huxton <dev@archonet.com>)
Re: Quick Regex Question  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список pgsql-general
Hi all,

I don't understand the last result:

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 ])

 From my limited experience of regex, the last one is searching for either
    'Ho' preceeeded by space or
    'Ho' at the beginning of a string.

How come it returns false?

Thanks.

P.S. The Ho's are Santa type Ho's - Not the other kind.

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

Предыдущее
От: Wolfgang Keller
Дата:
Сообщение: Re: Composite types for composite primary/foreign keys?
Следующее
От: Florian Aumeier
Дата:
Сообщение: Re: Quick Regex Question