Help for this page
my $line = 'marker <this> <that> <other>'; my $rex = qr/(?:^marker\s|\G)<(.*?)>(?: |$)/; my @matches = ($line =~ /$rex/g);