in reply to Regex to match "this=that" multiple times

Are you looking for something like:

use strict; use warnings; my $line = 'one="1" two="2" three="3" x="y"'; my @parts = $line =~ /([^=]* = \s* "[^"]*" )\s*/gx; print "$_\n" for @parts;

Prints:

one="1" two="2" three="3" x="y"

Perl is environmentally friendly - it saves trees