Support multiple capture groups in headerRegex, close #1458