Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print "Matched $1\n" if $str =~ /(\d+)/g;
    print "Matched $1\n" if $str =~ /(\w+)/g;
    
  2. or download this
    Matched 10