agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: hubert depesz lubaczewski <depesz@depesz.com>
To: Shaozhong SHI <shishaozhong@gmail.com>
Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>
Subject: Re: How best to work around the issue - regex string cannot contain brackets
Date: Fri, 4 Feb 2022 13:55:58 +0100
Message-ID: <20220204125558.GA31459@depesz.com> (raw)
In-Reply-To: <CA+i5JwYi246WtbtgQQy5o7vhsj8DLqunAA4FW1m68NpLUp0gLg@mail.gmail.com>
References: <CA+i5JwYi246WtbtgQQy5o7vhsj8DLqunAA4FW1m68NpLUp0gLg@mail.gmail.com>
On Thu, Feb 03, 2022 at 04:53:18PM +0000, Shaozhong SHI wrote:
> One would consider the following would work, but it did not because the
> brackets.
> select regexp_matches('Department for Transport (Parking)', 'Department for
> Transport (Parking)', 'g')
> Can anyone enlighten me?
Perhaps you don't want regexp matching, but simple equality or
substring match?
depesz
view thread (8+ messages) latest in thread
Message-ID: <20220204125558.GA31459@depesz.com>
Permalink: ../20220204125558.GA31459@depesz.com/
Also on: postgresql.org/message-id/20220204125558.GA31459@depesz.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: depesz@depesz.com, shishaozhong@gmail.com, pgsql-sql@lists.postgresql.org
Subject: Re: How best to work around the issue - regex string cannot contain brackets
In-Reply-To: <20220204125558.GA31459@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox