Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $match =~ s/x/[abcd]/ig;
    
    print "Matched $1\n" if $str =~ /($match)/i;
    
  2. or download this
    Matched ABCDABCDABCDABCDABCDABCDABCD