in reply to Regular expression help
I often do quick and dirty parsing jobs like this:
my $name = qr/([\w_-=]+)\s*/; my $enum = qr/(([\d.-+,])\s*/; <p> while ( <> ) { if ( my @captures = /$name$name$enum/ ) { do_something_here(@captures); } }
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|