protected Regex GetTransform(string pattern) { return _regexes.GetOrAdd(pattern, x => new Regex(x, RegexOptions.Compiled)); } }