Re: problem with regexp (cant quote +)]

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: problem with regexp (cant quote +)]
Дата
Msg-id 3F07364B.80804@wildenhain.de
обсуждение исходный текст
Список pgsql-general
Hi Peter,

peter pilsl wrote:
>
> postgres 7.3.2:
>
> I wonder why the following expression fails. I came to this wondering why I
> could not search for + using the '~'-operator.
>
> select 'ok' where 'H+H'~'H\+H';
>

funny. but try

select 'ok' where 'H+H' ~ 'H[+]H';

Regards
Tino




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

Предыдущее
От: peter pilsl
Дата:
Сообщение: problem with regexp (cant quote +)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: problem with regexp (cant quote +)