Help for this page

Select Code to Download


  1. or download this
    sub domatch {
        my ($str, $regex) = @_;
    ...
        print "No keys in hash.\n";
        return 0;
    }
    
  2. or download this
    original pseudo-regex: test_%a%b
    modified regex: test_(\d{2})(?{$mv{a} = $^N })(\d{4})(?{$mv{b} = $^N }
    +)
    ...
    Result:
        a => 33
        b => 0104