Help for this page

Select Code to Download


  1. or download this
    foo m 1 m 2 m 3 m 4 bar
    foo m 2 m 4 m 7 bar
    foo m 1 bar
    
  2. or download this
    my (@match) = ($str =~ /^foo (?:m (\d+) )+bar/);
    
  3. or download this
    my @match;
    if ($str =~ /^foo /) {
    ...
            push @match, $1;
        }
    }