More precise regex exception match

This is for Erjang, which generates different
exception messages
test cleanup as per comments
Merge pull request #1903 from krestenkrab/krab-regex-repeat

More precise regex exception match [for erjang]