in reply to Another for those who love the Regular Expression questions...

Here's my hand at it:
while ($string =~ /([^"]*)"([^"]*)"(.*)/g) { push @result, ((split " ", $1), $2); $string = $3; } push @result, split " ", $string if $string;
Cheers,
Ovid
  • Comment on (Ovid) Re: Another for those who love the Regular Expression questions...
  • Download Code