Function gatherRegexMatchingViolations