Re: trouble with regular expression

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: trouble with regular expression
Дата
Msg-id 27826.1212604649@sss.pgh.pa.us
обсуждение исходный текст
Ответ на trouble with regular expression  (Pushker Chaubey <pchaubey@vertex.co.in>)
Ответы Re: trouble with regular expression  (Pushker Chaubey <pchaubey@vertex.co.in>)
Список pgsql-jdbc
Pushker Chaubey <pchaubey@vertex.co.in> writes:
> (Please note that I just replaced similar to with ~*)

They're not the same ... SIMILAR TO is SQL-spec which is almost entirely
unlike POSIX.

You can get there using the undocumented similar_escape function:
"a SIMILAR TO b" is actually implemented as "a ~ similar_escape(b,null)",
so "a ~* similar_escape(b,null)" should do what you want.

            regards, tom lane

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

Предыдущее
От: Pushker Chaubey
Дата:
Сообщение: trouble with regular expression
Следующее
От: Pushker Chaubey
Дата:
Сообщение: Re: trouble with regular expression