Help for this page

Select Code to Download


  1. or download this
    my $re = new Regexp($pattern);
    my $value = $re->substitute($value, replacement, $flags);
    
  2. or download this
    package Regex;
    
    ...
    }
    
    1;
    
  3. or download this
    #!/usr/bin/env perl
    
    ...
        $case_sens_re_obj->replace($test_string, '_'), "\n";
    print 'case_insens_re_obj substition: ',
        $case_insens_re_obj->replace($test_string, '_'), "\n";
    
  4. or download this
    case_sens_re_obj match: NO
    case_insens_re_obj match: YES
    case_sens_re_obj substition: ABC
    case_insens_re_obj substition: A_C