#!/usr/bin/perl # # my $string = ' '; foreach ($string =~ m/label\=\"(.+?)\"/igm) { print $1; }