Use Regex.IsMatch
ProprietaryReplace Regex.Match(s, p).Success with Regex.IsMatch(s, p).
OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseRegexIsMatchmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseRegexIsMatchInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.