It does not pick up the last value for the last key, should have tested it better. I also think that your version is more readable. Though I would leave out the = from the key.
$hash{$1} = $2 while ($data =~ /(\w+)=((\w+( |$)+)+)/g);
Have Fun
In reply to Re: Re: Re: Parsing Challenge
by gumpu
in thread Parsing Challenge
by symŽ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |