Help for this page

Select Code to Download


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