in reply to Why does /i not seem to work
(?^:abc|xyz)
The sequence ?^ is described in perlre:
> Starting in Perl 5.14, a "^" (caret or circumflex accent) immediately after the "?" is a shorthand equivalent to "d-imnsx". Flags (except "d") may follow the caret to override it. But a minus sign is not legal with it.
-i means the qr() by default creates case sensitive regex objects.
|
|---|