Re: Postgres regexp matching failure?

Поиск
Список
Период
Сортировка
От Aaron Bono
Тема Re: Postgres regexp matching failure?
Дата
Msg-id bf05e51c0609050642p590b8a7euc581ffd52119e4ce@mail.gmail.com
обсуждение исходный текст
Ответ на Postgres regexp matching failure?  (Mario Splivalo <mario.splivalo@mobart.hr>)
Ответы Re: Postgres regexp matching failure?
Список pgsql-sql
On 9/5/06, Mario Splivalo <mario.splivalo@mobart.hr> wrote:

pulitzer2=# select 'stop works' ~ '^\s*(?:[\
+|-]|(?:[sS][tT][oO][pP]\b)).*$';
?column?
----------
f
(1 row)

Here, postgres should return true, but it gives me false.

 
\b is a back-space - is that what you are wanting there?  If I remove it I get true.

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
==================================================================

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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: pg_dump
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgres regexp matching failure?