in reply to What is being matched?

Read perlretut with special attention to captures.