http://qs321.pair.com?node_id=544848


in reply to clean code

regex for teh win!

%data = $memory_data =~ /([^=]+)=([^;]*);?/g;

at least, depending on your definition on 'clean'...

update: I now noticed that my regex is almost identical to gellyfish's, but I assign directly to the hash...