Added wildcardToRegex