- or download this
sub is_ci {
my ($pat) = @_;
...
or return 0;
return $pos_mods =~ /i/;
}
- or download this
use re qw( regexp_pattern );
sub is_ci { (regexp_pattern(shift))[1] =~ /i/ }
- or download this
qr/(?i:hello)/
qr/(?i)hello/
qr/[hH][eE][lL][lL][oO]/
qr/1234/
- or download this
qr/(?-i)hello/i
qr/(?-i:hello)/i
qr/he(?-i:l)lo/i