![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Regex solution neededby ikegami (Patriarch) |
on Feb 23, 2007 at 20:13 UTC ( #601813=note: print w/replies, xml ) | Need Help?? |
The \s should probably be \s+, and is slower than
This factors out the constant \s+, and it uses | which probably has a lower overhead than (?!...). Furthermore, alternations of constant strings can be highly optimized by re engine modifications demerphq added to 5.9. (I don't think those particular strings can be optimized, though.)
In Section
Seekers of Perl Wisdom
|
|