Alexey Shishkin <alexey(dot)shishkin(dot)01(at)gmail(dot)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