http://www.perlmonks.org?node_id=408757


in reply to Re^2: Matching against list of patterns
in thread Matching against list of patterns

That shows you what text matched, not which pattern matched it.

There's nothing wrong with it as a way of finding out what text matched, but in the node you replied to I was specifically trying to address this aspect of the root node: the whole point of this excercise is to figure out WHICH regexp matched.

Hugo