Use Regex.IsMatch

Proprietary

Replace Regex.Match(s, p).Success with Regex.IsMatch(s, p).

OpenRewrite.Recipes.CSharp.CodeQuality.Performance.UseRegexIsMatch
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Performance.UseRegexIsMatch

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.