Renamed ConvertToRegex to ResolveToRegex