in reply to Multiple Regex evaluations or one big one?

In addition to what the other monks have already said (maintainability, etc etc)

There are many variables and results can vary if you change any one, be it hardware, perl version/config, data, regex ... and your benchmarks should reflect that, so you can figure out whether its worth doing.

See two such benchmarks Re^3: Increasing the efficiency of a viral clonal expansion model, Re^4: Hamming Distance Between 2 Strings - Fast(est) Way?

See also, on benchmarking and (micro)optimizations, regex engine changes...

  • Comment on Re: Multiple Regex evaluations or one big one?