robust handling of not existing regexes