Help for this page

Select Code to Download


  1. or download this
    my $line = 'marker <this> <that> <other>';
    my $rex = qr/(?:^marker\s|\G)<(.*?)>(?: |$)/g;
    my @matches = ($line =~ $rex);
    
  2. or download this
    my @lines = (
      'notmarker <blah> <foo> <bar>',
    ...
        print join(', ', @matches)."\n";
        }
      }