The stupid question is the question not asked | |
PerlMonks |
Re: Parsing named parametersby samizdat (Vicar) |
on Nov 07, 2005 at 14:43 UTC ( [id://506350]=note: print w/replies, xml ) | Need Help?? |
An elegant solution that was given to me for a similar problem was to first REVERSE the string. {Re: how to find what's not there with a regex? in how to find what's not there with a regex?} There is always only one token before the '=', so it is much easier to parse "everything up to the '='" and then "one token after the '='". Then, reverse again.
In Section
Seekers of Perl Wisdom
|
|