I feel dumb. Thank you for pointing this out. As far as your suggestion goes I prefer to fix the function to make a copy of @_, instead of expecting the user of the function to remember this subtle behavior.
Re^2: Regex capture consumed by non-capturing match
Replies are listed 'Best First'.