Simplifying regular expression to silence warnings.