Help for this page

Select Code to Download


  1. or download this
    my($text) = "(network)(test)(ifcfg)";
    my(@matches) = ($text =~ m/\((.*?)\)/g);
    my $match_count = scalar(@matches);
    print "The following $match_count matches were found:\n";
    foreach my $match (@matches) {print "  $match\n";}