25 references to IsMatch
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (4)
120
if (Regex.
IsMatch
(lineText, TableHeaderNewOrRemovedRulesLine1RegexPattern, RegexOptions.IgnoreCase))
131
if (Regex.
IsMatch
(lineText, TableHeaderNewOrRemovedRulesLine2RegexPattern, RegexOptions.IgnoreCase))
140
if (Regex.
IsMatch
(lineText, TableHeaderChangedRulesLine1RegexPattern, RegexOptions.IgnoreCase))
151
if (Regex.
IsMatch
(lineText, TableHeaderChangedRulesLine2RegexPattern, RegexOptions.IgnoreCase))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
51
=> _additionalFiles.Where(x => Regex.
IsMatch
(Path.GetFileName(x.Path), pattern, RegexOptions.IgnoreCase));
Microsoft.Build.Framework (2)
BuildEnvironmentHelper.cs (2)
166
Regex.
IsMatch
(processName, $@".*\\MSBuild\\{CurrentToolsVersion}\\Bin\\.*MSBuild(?:TaskHost)?\.exe", RegexOptions.IgnoreCase))
240
Regex.
IsMatch
(msbuildExe, msBuildPathPattern, RegexOptions.IgnoreCase))
Microsoft.CodeAnalysis.Analyzers (9)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (4)
351
if (Regex.
IsMatch
(lineText, ReleaseTrackingHelper.TableHeaderNewOrRemovedRulesLine1RegexPattern, RegexOptions.IgnoreCase) ||
352
Regex.
IsMatch
(lineText, ReleaseTrackingHelper.TableHeaderChangedRulesLine1RegexPattern, RegexOptions.IgnoreCase))
356
else if (Regex.
IsMatch
(lineText, ReleaseTrackingHelper.TableHeaderNewOrRemovedRulesLine2RegexPattern, RegexOptions.IgnoreCase) ||
357
Regex.
IsMatch
(lineText, ReleaseTrackingHelper.TableHeaderChangedRulesLine2RegexPattern, RegexOptions.IgnoreCase))
MetaAnalyzers\ReleaseTrackingHelper.cs (4)
120
if (Regex.
IsMatch
(lineText, TableHeaderNewOrRemovedRulesLine1RegexPattern, RegexOptions.IgnoreCase))
131
if (Regex.
IsMatch
(lineText, TableHeaderNewOrRemovedRulesLine2RegexPattern, RegexOptions.IgnoreCase))
140
if (Regex.
IsMatch
(lineText, TableHeaderChangedRulesLine1RegexPattern, RegexOptions.IgnoreCase))
151
if (Regex.
IsMatch
(lineText, TableHeaderChangedRulesLine2RegexPattern, RegexOptions.IgnoreCase))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
51
=> _additionalFiles.Where(x => Regex.
IsMatch
(Path.GetFileName(x.Path), pattern, RegexOptions.IgnoreCase));
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
51
=> _additionalFiles.Where(x => Regex.
IsMatch
(Path.GetFileName(x.Path), pattern, RegexOptions.IgnoreCase));
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
51
=> _additionalFiles.Where(x => Regex.
IsMatch
(Path.GetFileName(x.Path), pattern, RegexOptions.IgnoreCase));
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
596
Regex.
IsMatch
(response.Text ?? "", @"\b(3|three)\b", RegexOptions.IgnoreCase),
Microsoft.ML.AutoML (1)
ColumnInference\ColumnTypeInference.cs (1)
219
if (Regex.
IsMatch
(v, candidate, RegexOptions.IgnoreCase))
NuGet.Common (2)
PathUtil\PathValidator.cs (2)
92
return Regex.
IsMatch
(url, @"^\w+://", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant) && Uri.TryCreate(url, UriKind.Absolute, out _);
101
return !Regex.
IsMatch
(path, @"^\w+://", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant) && !Path.IsPathRooted(path);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (1)
51
=> _additionalFiles.Where(x => Regex.
IsMatch
(Path.GetFileName(x.Path), pattern, RegexOptions.IgnoreCase));
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Match.cs (2)
73
/// The <see cref="
IsMatch
(string, string, RegexOptions)"/> method is typically used to validate a string
80
/// The static <see cref="
IsMatch
(string, string, RegexOptions)"/> method is equivalent to constructing a