Add support for regex based matching of expected failures.