46 references to Matches
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
114var matches = TargetFrameworkPropertyRegex().Matches(csprojContent);
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
114var matches = TargetFrameworkPropertyRegex().Matches(csprojContent);
illink (1)
Microsoft.Build (1)
ProjectWriter.cs (1)
133MatchCollection itemVectorTransforms = itemVectorTransformRawPattern.Value.Matches(text);
Microsoft.Build.Engine.UnitTests (4)
Evaluation\ExpressionShredder_Tests.cs (4)
599MatchCollection matches = s_itemVectorPattern.Matches(expression); 1126foreach (Match itemVector in s_itemVectorPattern.Matches(expression)) 1261embeddedMetadataReferences = s_itemMetadataPattern.Matches(batchableObjectParameter); 1274embeddedMetadataReferences = s_nonTransformItemMetadataPattern.Matches(batchableObjectParameter);
Microsoft.Build.Tasks.UnitTests (1)
XslTransformation_Tests.cs (1)
379MatchCollection mc = _surroundMatch.Matches(fileContents);
Microsoft.Build.Utilities.UnitTests (1)
ToolTask_Tests.cs (1)
276regex.Matches(log).Count.ShouldBe(1, $"{log} doesn't contain the log matching the pattern: {pattern}");
Microsoft.CodeAnalysis (2)
CommandLine\AnalyzerConfig.cs (2)
221var sectionMatches = GetSectionMatcherRegex().Matches(line); 235var propMatches = GetPropertyMatcherRegex().Matches(line);
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
342var matches = s_extractPlaceholdersRegex.Matches(formatStringWithEscapedBracketsChangedToSpaces);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
68var sectionMatches = s_sectionMatcher.Matches(line); 83var propMatches = s_propertyMatcher.Matches(line);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (6)
134var matchCollection = pattern.Matches(text); 141var fileExtensionMatches = s_fileExtensionMatcher.Matches(innerText); 178var matchCollection = pattern.Matches(text); 185var fileExtensionMatches = s_fileExtensionMatcher.Matches(innerText); 221var matchCollection = pattern.Matches(text); 228var fileExtensionMatches = s_fileExtensionMatcher.Matches(innerText);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
342var matches = s_extractPlaceholdersRegex.Matches(formatStringWithEscapedBracketsChangedToSpaces);
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
EditAndContinue\SourceMarkers.cs (3)
50foreach (var match in s_tags.Matches(markedSource).ToEnumerable()) 90var matches = s_trackingStatementPattern.Matches(src); 114var matches = ExceptionRegionPattern.Matches(markedSource);
Microsoft.CodeAnalysis.Test.Utilities (1)
MarkedSource\SourceWithMarkedNodes.cs (1)
54foreach (var match in s_markerPattern.Matches(markedSource).ToEnumerable())
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenVBCore.vb (1)
3209Dim matches = s_normalizeRegex.Matches(expected)
Microsoft.CodeAnalysis.Workspaces (9)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
413var matches = regex.Matches(renameString);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
68var sectionMatches = s_sectionMatcher.Matches(line); 83var propMatches = s_propertyMatcher.Matches(line);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (6)
134var matchCollection = pattern.Matches(text); 141var fileExtensionMatches = s_fileExtensionMatcher.Matches(innerText); 178var matchCollection = pattern.Matches(text); 185var fileExtensionMatches = s_fileExtensionMatcher.Matches(innerText); 221var matchCollection = pattern.Matches(text); 228var fileExtensionMatches = s_fileExtensionMatcher.Matches(innerText);
Microsoft.DotNet.Arcade.Sdk (2)
src\GenerateResxSource.cs (2)
498var match = _namedParameterMatcher.Matches(value); 503match = _numberParameterMatcher.Matches(value);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\AzureConnectionStringBuildTask.cs (1)
41MatchCollection matches = storageConnectionStringRegex.Matches(ConnectionString);
Microsoft.DotNet.XliffTasks (1)
StringExtensions.cs (1)
46foreach (Match placeholder in s_placeholderRegex.Matches(text))
Microsoft.ML.InternalCodeAnalyzer (1)
NameFixProvider.cs (1)
122foreach (Match match in _sections.Matches(name))
Microsoft.ML.TestFramework (2)
BaseTestBaseline.cs (2)
576MatchCollection firstCollection = _matchNumbers.Matches(firstString); 577MatchCollection secondCollection = _matchNumbers.Matches(secondString);
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Regex.Match.cs (3)
179RegexCache.GetOrAdd(pattern).Matches(input); 185RegexCache.GetOrAdd(pattern, options, s_defaultMatchTimeout).Matches(input); 188RegexCache.GetOrAdd(pattern, options, matchTimeout).Matches(input);