Re: What is the regex for apostraphe in postgres? - Mailing list pgsql-sql

From Torsten Grust
Subject Re: What is the regex for apostraphe in postgres?
Date
Msg-id e0d3c0e0-2735-49ea-88e3-176f11324303@www.fastmail.com
Whole thread Raw
In response to What is the regex for apostraphe in postgres?  (Shaozhong SHI <shishaozhong@gmail.com>)
Responses Re: What is the regex for apostraphe in postgres?
List pgsql-sql
Hi David,

in a SQL string literal (or regular expression), an apostrophe is represented by '' (double apostrophe):

  SELECT 'foo''bar' SIMILAR TO '_+''_+';
  -> #t

Cheers,
  —T

On Thu, Oct 14, 2021, at 12:31, Shaozhong SHI wrote:
Can we check whether a text string contains apostraphe ' of not?

Regards,

David

--
| Torsten Grust


pgsql-sql by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: What is the regex for apostraphe in postgres
Next
From: Metin Ulusinan
Date:
Subject: Re: Fault with initcap