Re: trouble with regular expression

Поиск
Список
Период
Сортировка
От Pushker Chaubey
Тема Re: trouble with regular expression
Дата
Msg-id 48478B38.5020103@vertex.co.in
обсуждение исходный текст
Ответ на Re: trouble with regular expression  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc
Tom,
Thanks a lot! It worked.

Tom Lane wrote:
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
 


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy the original message all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. Please do not print this email unless it is absolutely necessary.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: trouble with regular expression
Следующее
От: "Allgood, John"
Дата:
Сообщение: JDBC on Postgres 8.3