![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re^3: Regex, capturing variables vs. speedby robin (Chaplain) |
on Oct 30, 2005 at 20:31 UTC ( #504038=note: print w/replies, xml ) | Need Help?? |
Even faster is to use a single match, but to be explicit about what you're looking for, i.e.
It's always better to write (\S*)\s than (.*?)\s, because you're making it clear to the matching engine exactly what you're looking for (non-space characters in this case).
In Section
Seekers of Perl Wisdom
|
|