2 instantiations of MatchCollection
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Match.cs (2)
742return new MatchCollection(this, input, RightToLeft ? input.Length : 0); 791return new MatchCollection(this, input, startat);
83 references to MatchCollection
aspire (2)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, maxRegexTimeout);
Projects\FallbackProjectParser.cs (1)
308var matches = PackageDirectiveRegex().Matches(fileContent);
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
134var matches = TargetFrameworkPropertyRegex().Matches(csprojContent);
Aspire.Templates.Tests (2)
LocalhostTldHostnameTests.cs (1)
85var matches = HostnamePattern().Matches(urls);
tests\Shared\TemplatesTesting\AspireProject.cs (1)
134var matches = TargetFrameworkPropertyRegex().Matches(csprojContent);
cdac-build-tool (1)
ContractDescriptorSourceFileEmitter.cs (1)
85var matches = FindTemplatePlaceholderRegex.Matches(template);
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
294var 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.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
294var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
294var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Microsoft.Build (5)
Logging\TerminalLogger\TerminalLogger.cs (4)
304var tlArgMatches = TerminalLoggerArgPattern.Matches(arg); 311var verbosityArgMatches = VerbosityArgPattern.Matches(arg); 318var tlpMatches = TerminalLoggerParametersArgPattern.Matches(arg); 325var clpMatches = ConsoleLoggerParametersArgPattern.Matches(arg);
Utilities\ProjectWriter.cs (1)
135MatchCollection itemVectorTransforms = ItemVectorTransformRawRegex.Matches(text);
Microsoft.CodeAnalysis (3)
CommandLine\AnalyzerConfig.cs (2)
221var sectionMatches = GetSectionMatcherRegex().Matches(line); 235var propMatches = GetPropertyMatcherRegex().Matches(line);
Diagnostic\DiagnosticInfo.cs (1)
134var matches = Regex.Matches(message, @"\{\d+[}:]");
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
342var matches = s_extractPlaceholdersRegex.Matches(formatStringWithEscapedBracketsChangedToSpaces);
Microsoft.CodeAnalysis.Features (1)
src\roslyn\src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
342var matches = s_extractPlaceholdersRegex.Matches(formatStringWithEscapedBracketsChangedToSpaces);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
AbstractResxGenerator.cs (1)
873var match = _namedParameterMatcher.Matches(value);
Microsoft.CodeAnalysis.Workspaces (1)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
429var matches = regex.Matches(renameString);
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
498var match = _namedParameterMatcher.Matches(value);
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIAssistantChatClientIntegrationTests.cs (1)
125var matches = Regex.Matches(listing, @"thread_\w+");
Microsoft.Maui.Controls (2)
ShadowTypeConverter.cs (1)
79 var matches = regex.Matches(strValue);
WebView\WebView.cs (1)
302 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))]
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
294var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
System (1)
src\runtime\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 (48)
System\Text\RegularExpressions\Match.cs (2)
16/// <see cref="MatchCollection"/> object that consists of zero, one, or more <see cref="Match"/> 21/// an input string, it returns an empty <see cref="MatchCollection"/> object. You can then use a
System\Text\RegularExpressions\MatchCollection.cs (16)
14/// <see cref="MatchCollection" /> object. 25/// engine uses either of two techniques to build the <see cref="MatchCollection" /> object: 31/// The <see cref="MatchCollection" /> object is populated all at once, 41/// The <see cref="MatchCollection" /> object is populated as needed on a 96/// Because the <see cref="MatchCollection" /> object is generally populated by using lazy 119/// in code, but instead allows the <see cref="MatchCollection" /> to be accessed as if it were 123/// Typically, individual items in the <see cref="MatchCollection" /> are accessed by their index 131/// Because the <see cref="MatchCollection" /> object is generally populated by using lazy 158/// <see cref="MatchCollection" />. 168/// Iterating the members of the <see cref="MatchCollection" /> using the 176/// Because the <see cref="MatchCollection" /> object is generally populated by using lazy 247/// Because the <see cref="MatchCollection" /> object is generally populated by using lazy 256/// The number of elements in the source <see cref="MatchCollection" /> is greater than the 259/// The type of the source <see cref="MatchCollection" /> cannot be cast automatically to the 353private readonly MatchCollection _collection; 356internal Enumerator(MatchCollection collection)
System\Text\RegularExpressions\Regex.Match.cs (25)
595/// <see cref="MatchCollection"/> object. Accessing members of this collection such as 596/// <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the collection to 603/// operation is performed on the <see cref="MatchCollection"/> object returned by this method, if a 607public static MatchCollection Matches(string input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) => 640/// returned <see cref="MatchCollection"/> object. Accessing members of this collection such as 641/// <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the collection to 648/// thrown when an operation is performed on the <see cref="MatchCollection"/> object returned by this 652public static MatchCollection Matches(string input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) => 689/// populate the returned <see cref="MatchCollection"/> object. Accessing members of this collection 690/// such as <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the 698/// is performed on the <see cref="MatchCollection"/> object returned by this method, if a matching 702public static MatchCollection Matches(string input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) => 722/// <see cref="MatchCollection"/> object. Accessing members of this collection such as 723/// <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the collection to 730/// is performed on the <see cref="MatchCollection"/> object returned by this method, if the 735public MatchCollection Matches(string input) 771/// <see cref="MatchCollection"/> object. Accessing members of this collection such as 772/// <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the collection to 779/// operation is performed on the <see cref="MatchCollection"/> object returned by this method, if the 784public MatchCollection Matches(string input, int startat)
System\Text\RegularExpressions\Regex.Replace.cs (5)
345/// each <see cref="System.Text.RegularExpressions.Match"/> object in the returned <see cref="MatchCollection"/> to the 391/// each <see cref="System.Text.RegularExpressions.Match"/> object in the returned <see cref="MatchCollection"/> to the 446/// each <see cref="System.Text.RegularExpressions.Match"/> object in the returned <see cref="MatchCollection"/> to the 493/// <see cref="System.Text.RegularExpressions.Match"/> object in the returned <see cref="MatchCollection"/> to the 539/// <see cref="MatchCollection"/> to the <paramref name="evaluator"/> delegate.