Fix regexps with failing groups