Re: What is the regex for apostraphe in postgres

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: What is the regex for apostraphe in postgres
Дата
Msg-id CAKFQuwZOUibf_X0xxruXz_PMBhBGCSemRcGNkP3FF8d=9Q6ZAA@mail.gmail.com
обсуждение исходный текст
Список pgsql-sql
On Thursday, October 14, 2021, Shaozhong SHI <shishaozhong@gmail.com> wrote:
Can we check whether a text string contains apostraphe ' of not?


Yes.  But if you write the regex using single quotes to denote the literal you need to follow sql literal writing conventions for escaping the single quote inside the literal.  This is documented.

David J.

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

Предыдущее
От: Shaozhong SHI
Дата:
Сообщение: What is the regex for apostraphe in postgres?
Следующее
От: "Torsten Grust"
Дата:
Сообщение: Re: What is the regex for apostraphe in postgres?