2 instantiations of MatchCollection
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Match.cs (2)
200return new MatchCollection(this, input, RightToLeft ? input.Length : 0); 213return new MatchCollection(this, input, startat);
75 references to MatchCollection
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);
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
97MatchCollection mc = null; 206MatchCollection mc = null;
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (10)
UserJwtsTests.cs (10)
150var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 184var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 329var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 348var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 368var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 389var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 511var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 604var printMatches = Regex.Matches(_console.GetOutput(), "Signing Key: '(.*?)'"); 609var resetMatches = Regex.Matches(_console.GetOutput(), "New signing key created: '(.*?)'"); 630var printMatches = Regex.Matches(_console.GetOutput(), "Signing Key: '(.*?)'");
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Microsoft.Build (3)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (2)
93var sectionMatches = GetSectionMatcherRegex().Matches(line); 106var propMatches = GetPropertyMatcherRegex().Matches(line);
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); 1165MatchCollection embeddedMetadataReferences = FindEmbeddedMetadataReferenceMatches_OriginalImplementation(batchableObjectParameter); 1248private static MatchCollection FindEmbeddedMetadataReferenceMatches_OriginalImplementation(string batchableObjectParameter) 1250MatchCollection embeddedMetadataReferences = null;
Microsoft.Build.Tasks.Core (1)
XamlTaskFactory\CommandLineGenerator.cs (1)
650MatchCollection matches = regex.Matches(CommandLineTemplate);
Microsoft.Build.Tasks.UnitTests (2)
ResourceHandling\GenerateResource_Tests.cs (1)
3769var matches = Regex.Matches(unformattedMessage, @"\{\d+.*?\}");
XslTransformation_Tests.cs (1)
379MatchCollection mc = _surroundMatch.Matches(fileContents);
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
558var matches = Regex.Matches(FullLog, regexSearch ? message : Regex.Escape(message));
Microsoft.CodeAnalysis (3)
CommandLine\AnalyzerConfig.cs (2)
221var sectionMatches = GetSectionMatcherRegex().Matches(line); 235var propMatches = GetPropertyMatcherRegex().Matches(line);
Diagnostic\DiagnosticInfo.cs (1)
133var matches = Regex.Matches(message, @"\{\d+[}:]");
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 (2)
EditAndContinue\SourceMarkers.cs (2)
90var matches = s_trackingStatementPattern.Matches(src); 114var matches = ExceptionRegionPattern.Matches(markedSource);
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\RegexExtensions.cs (1)
14public static IEnumerable<Match> ToEnumerable(this MatchCollection collection)
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 (1)
src\GenerateResxSource.cs (1)
498var match = _namedParameterMatcher.Matches(value);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\AzureConnectionStringBuildTask.cs (1)
41MatchCollection matches = storageConnectionStringRegex.Matches(ConnectionString);
Microsoft.Maui.Controls (1)
WebView\WebView.cs (1)
299 var singleQuotes = Regex.Matches(js, @"(\\*?)'");
Microsoft.ML.TestFramework (4)
BaseTestBaseline.cs (4)
576MatchCollection firstCollection = _matchNumbers.Matches(firstString); 577MatchCollection secondCollection = _matchNumbers.Matches(secondString); 592private bool MatchNumberWithTolerance(MatchCollection firstCollection, MatchCollection secondCollection,
netstandard (1)
netstandard.cs (1)
2050[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Text.RegularExpressions.MatchCollection))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
905[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Text.RegularExpressions.MatchCollection))]
System.Private.Xml (1)
System\Xml\XmlConvert.cs (1)
184MatchCollection? mc;
System.Text.RegularExpressions (7)
System\Text\RegularExpressions\MatchCollection.cs (2)
195private readonly MatchCollection _collection; 198internal Enumerator(MatchCollection collection)
System\Text\RegularExpressions\Regex.Match.cs (5)
178public static MatchCollection Matches(string input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) => 184public static MatchCollection Matches(string input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) => 187public static MatchCollection Matches(string input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) => 193public MatchCollection Matches(string input) 206public MatchCollection Matches(string input, int startat)
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Templates.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);