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);
73 references to MatchCollection
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)
113var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 147var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 292var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 311var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 331var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 352var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 474var matches = Regex.Matches(_console.GetOutput(), "New JWT saved with ID '(.*?)'"); 567var printMatches = Regex.Matches(_console.GetOutput(), "Signing Key: '(.*?)'"); 572var resetMatches = Regex.Matches(_console.GetOutput(), "New signing key created: '(.*?)'"); 593var 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)
98var sectionMatches = GetSectionMatcherRegex().Matches(line); 111var propMatches = GetPropertyMatcherRegex().Matches(line);
ProjectWriter.cs (1)
133MatchCollection itemVectorTransforms = itemVectorTransformRawPattern.Value.Matches(text);
Microsoft.Build.Engine (1)
Shared\ProjectWriter.cs (1)
156MatchCollection itemVectorTransforms = itemVectorTransformRawPattern.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.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);