Re: Regex "embedded options" does only work on the whole pattern? - Mailing list pgsql-general

From David G. Johnston
Subject Re: Regex "embedded options" does only work on the whole pattern?
Date
Msg-id CAKFQuwYO-SvGk=x-y_85bqfqR-fkrp2eH35Gs+Y342KUAOJwYw@mail.gmail.com
Whole thread Raw
In response to Regex "embedded options" does only work on the whole pattern?  (matshyeq <matshyeq@gmail.com>)
List pgsql-general
On Sun, Jan 3, 2016 at 8:49 AM, matshyeq <matshyeq@gmail.com> wrote:
Does that mean these "EMBEDDED OPTIONS" can be only defined at the beginning of the pattern and therefore don't offer anything extra over flags option?

​Yes, this is how they behave.  The most important difference is that:

column ~ 'regex'  (i.e., the operator)

can only accept embedded switches since there is no place to write a formal flag like you can with the functions.

​Though there is a case-insensitive operator as a usability feature the other modes lack any external operator support.

David J.

pgsql-general by date:

Previous
From: matshyeq
Date:
Subject: Regex "embedded options" does only work on the whole pattern?
Next
From: Venkatesulu Jumbo
Date:
Subject: Re: PostgreSQL GUI tools