Re: posix style regexp?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: posix style regexp?
Дата
Msg-id 15436.1032385816@sss.pgh.pa.us
обсуждение исходный текст
Ответ на posix style regexp?  (Cindy <ctmoore@uci.edu>)
Список pgsql-general
Cindy <ctmoore@uci.edu> writes:
> I've a question about escaping special characters in a ~ string operation.
> To match the literal ? I would have thought I could put in \?
> but this seems not to work.

You need to double the backslash to get it through the string-literal
parser.  Try
    ... citation ~ 'y"335\\?"z[0-9]+';

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Permissions with multiple groups...
Следующее
От: Garo Hussenjian
Дата:
Сообщение: Boolean internal representation