in reply to Regexp and metacharacters

Unless there was some massive justification for doing it all in one statement ... I would not. The odds are simply too great that, in the not so very distant future, you are going to need to change some small thing, and you may rue your cleverness then.

Replies are listed 'Best First'.
Re^2: Regexp and metacharacters
by Sewi (Friar) on Dec 27, 2011 at 21:09 UTC
    Complex single-line RegExp's are often slower than multiple simple short lines. The CPAN Benchmark module or any kind of own benchmark should be able to tell you the situation for your case.