Tests the behavior of multiple regex capture groups.