in reply to Re^6: Regex question - identify which pattern comes first
in thread Regex question - identify which pattern comes first

> Sorry, I don't want to change the subject but can't help it.

Best a new thread with full benchmark. Too much guessing needed...

And consider

use Scalar::Util qw(looks_like_number);

  • Comment on Re^7: Regex question - identify which pattern comes first