in reply to Re: really non greedy match
in thread really non greedy match

my $wanted = ($text =~ /.*START (.*) END$/)[0]; my $wanted2 = ($text =~ /.*(START .* END)$/)[0]; my ($x,$y) = ($text =~ /.*(START (.*) END)$/)[0,1];
can be written as
my ($wanted) = $text =~ /.*START (.*) END$/; my ($wanted2) = $text =~ /.*(START .* END)$/; my ($x,$y) = $text =~ /.*(START (.*) END)$/;