re-fix regex error message parsing (match count returns # of subgroups)