in reply to Comparing Regular Expressions

Of course you can (and should) Benchmark both solutions to be sure (as Perl's regex optimizations can be non-obvious).

I would expect the first regex to be more expensive because of its alternations.