Test a regular expression against sample text and list every match with its position and capture groups.