in reply to Re: two regexes in one function call
in thread two regexes in one function call

Agree, this is definitely more safe and probably much faster. Thanks for pointing this out, the idioms are very interesing.

What I was rather surprised was the output of my short-minded solution, where all expressions alone worked, but combined together did not.

I just recently tried other perl for windows, the strawberry, and it seems to produce very same result. Strange.