There's more than one way to do things | |
PerlMonks |
Re: Help on using alternation grouping star versus dot star.by Abigail (Deacon) |
on Jun 10, 2001 at 17:17 UTC ( [id://87287]=note: print w/replies, xml ) | Need Help?? |
In Friedls book Mastering Regular Expressions this technique
is called loop unrolling. Your second example is bad because of the
nested * - Perl should warn you about them.
I would write it as:
-- Abigail
In Section
Seekers of Perl Wisdom
|
|