Re: pg_ident.conf + regular expressions issue - Mailing list pgsql-bugs

From Tom Lane
Subject Re: pg_ident.conf + regular expressions issue
Date
Msg-id 1731237.1729544688@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_ident.conf + regular expressions issue  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Alexey Shishkin <alexey.shishkin.01@gmail.com> writes:
> OK, what we have is:
> "(?c)^(.*SMOKEYBEAR)$" does not match "smokeybear"
> and at the same time:
> "(?i)^(.*SMOKEYBEAR)$" does match "smokeybear"
> How the latter is possible ?

Uh, that's the entire point of the "i" flag, no?
See about embedded options here:

https://www.postgresql.org/docs/current/functions-matching.html#POSIX-METASYNTAX

            regards, tom lane



pgsql-bugs by date:

Previous
From: Alexey Shishkin
Date:
Subject: Re: pg_ident.conf + regular expressions issue
Next
From: "David G. Johnston"
Date:
Subject: Re: pg_ident.conf + regular expressions issue