|go ahead... be a heretic|
Help me write a good reg-exp for this textby waxmop (Beadle)
|on Sep 05, 2003 at 15:49 UTC||Need Help??|
waxmop has asked for the wisdom of the Perl Monks concerning the following question:
I need to parse this page and create a hash using the codes as keys and the descriptions as values.
This is a section showing what the page looks like:
I want to build a hash that would work like this:
That should print:
All preceding and trailing whitespace needs to be removed from the description.
I've never been expert with regular expressions, so I'd love to see how the really smart people that hang out on this site would build that hash. Thanks in advance!