1 type derived from Match
System.Text.RegularExpressions (1)
2 instantiations of Match
System.Text.RegularExpressions (2)
514 references to Match
aspire (12)
Aspire.Cli.EndToEnd.Tests (3)
Aspire.Cli.Tests (4)
Aspire.Dashboard (4)
Aspire.Dashboard.Tests (2)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (4)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.Python (2)
Aspire.Hosting.Redis.Tests (1)
Aspire.Hosting.SqlServer (1)
Aspire.Templates.Tests (4)
BuildBoss (1)
dotnet-dev-certs (3)
dotnet-svcutil-lib (13)
GenerateDocumentationAndConfigFiles (6)
IIS.FunctionalTests (2)
IISExpress.FunctionalTests (2)
illink (1)
installer.tasks (1)
InteropTests (1)
Metrics (6)
Metrics.Legacy (6)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (23)
EndpointHtmlRendererTest.cs (23)
85var match = Regex.Match(content, ComponentPattern);
175var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
219var match = Regex.Match(content, ComponentPattern);
257var match = Regex.Match(content, ComponentPattern);
293var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
343var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
403var match = Regex.Match(content, ComponentPattern);
436var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
498var firstMatch = Regex.Match(firstComponent, PrerenderedComponentPattern, RegexOptions.Multiline);
502var secondMatch = Regex.Match(secondComponent, ComponentPattern);
557var match = Regex.Match(content, ComponentPattern);
597var match = Regex.Match(content, ComponentPattern);
637var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
689var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
758var match = Regex.Match(content, ComponentPattern);
798var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
838var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
1344var serverMarkerMatch = Regex.Match(lines[0], PrerenderedComponentPattern);
1345var serverNonPrerenderedMarkerMatch = Regex.Match(lines[1], ComponentPattern);
1347var webAssemblyMarkerMatch = Regex.Match(lines[2], PrerenderedComponentPattern);
1348var webAssemblyNonPrerenderedMarkerMatch = Regex.Match(lines[3], ComponentPattern);
1453var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Singleline);
1786var wasmOptionsMatch = Regex.Match(content, BrowserConfigurationPattern);
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Rewrite.Tests (8)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Shared.Tests (3)
Microsoft.AspNetCore.SpaServices.Extensions (4)
Microsoft.Build (20)
Evaluation\Expander.cs (8)
1159internal static string ExpandSingleMetadata(Match itemMetadataMatch, MetadataMatchEvaluator evaluator)
3011Match match = RegularExpressions.ItemMetadataRegex.Match(quotedExpressionFunction);
3035Match nextMatch = match.NextMatch();
3391public OneOrMultipleMetadataMatches(string quotedExpressionFunction, Match match, string name)
3427public MetadataMatch(Match match, string name)
3543public static void ReplaceAndAppend(string input, Func<Match, MetadataMatchEvaluator, string> evaluator, MetadataMatchEvaluator metadataMatchEvaluator, SpanBasedStringBuilder stringBuilder, Regex regex)
3559public static void ReplaceAndAppend(string input, Func<Match, MetadataMatchEvaluator, string> evaluator, MetadataMatchEvaluator matchEvaluatorState, int count, int startat, SpanBasedStringBuilder stringBuilder, Regex regex)
3593Match match = regex.Match(input, startat);
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.CommandLine.UnitTests (3)
Microsoft.Build.Engine.UnitTests (13)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
Microsoft.Build.Tasks.Core (7)
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.Analyzers (6)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
Microsoft.CodeAnalysis.Test.Utilities (6)
Microsoft.CodeAnalysis.Workspaces (11)
Microsoft.Data.Analysis (3)
Microsoft.Data.Analysis.Tests (3)
Microsoft.DotNet.Arcade.Sdk (3)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Feed (6)
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
Microsoft.DotNet.Build.Tasks.Installers (4)
Microsoft.DotNet.Helix.JobSender (1)
Microsoft.DotNet.SignCheckLibrary (7)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Maui.Controls.DesignTools (1)
Microsoft.ML.Data (3)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.ResultProcessor (3)
Microsoft.VisualBasic.Core (3)
netstandard (1)
PresentationBuildTasks (1)
RepoTasks (3)
Roslyn.Diagnostics.Analyzers (6)
SemanticSearch.BuildTask (1)
System (1)
System.Data.Common (1)
System.Data.Odbc (1)
System.Private.Xml (12)
System.Text.RegularExpressions (130)
System\Text\RegularExpressions\Match.cs (20)
12/// The <see cref="Match"/> class is immutable and has no public constructor. An instance of the
13/// <see cref="Match"/> class is returned by the <see cref="Regex.Match(string)"/> method and
15/// <see cref="Match"/> objects returned by the <see cref="Match.NextMatch"/> method. In addition, a
16/// <see cref="MatchCollection"/> object that consists of zero, one, or more <see cref="Match"/>
26/// returns a <see cref="Match"/> object that is equal to <see cref="Match.Empty"/>. You can use the
36/// Because a single match can involve multiple capturing groups, <see cref="Match"/> has a
38/// <see cref="Match"/> instance itself is equivalent to the first object in the collection, at
75public static Match Empty { get; } = new Match(null, 1, string.Empty, 0);
98/// for a <see cref="Match"/> to call <see cref="Tidy"/> first, in order to report the correct value, while this API will return
128/// the <see cref="Match"/> object (the entire match). Each subsequent member represents a
136/// Returns a new <see cref="Match"/> object with the results for the next match, starting at the
147/// <see cref="Match"/> object that contains information about the next match.
161public Match NextMatch()
228/// Returns a <see cref="Match"/> instance equivalent to the one supplied that is safe to share
231/// <param name="inner">The input <see cref="Match"/> object.</param>
232/// <returns>A regular expression <see cref="Match"/> object.</returns>
236public static Match Synchronized(Match inner)
System\Text\RegularExpressions\Regex.cs (7)
565internal Match? RunSingleMatch(RegexRunnerMode mode, int prevlen, string input, int beginning, int length, int startat)
597return RegularExpressions.Match.Empty;
652Match match = runner.runmatch!;
698Match? match = ScanInternal(mode, reuseMatchObject, inputString, 0, runner, inputSpan, returnNullIfReuseMatchObject: false);
759private static Match? ScanInternal(RegexRunnerMode mode, bool reuseMatchObject, string? input, int beginning, RegexRunner runner, ReadOnlySpan<char> span, bool returnNullIfReuseMatchObject)
763Match? match = runner.runmatch;
795return RegularExpressions.Match.Empty;
System\Text\RegularExpressions\Regex.Match.cs (27)
297/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Group.Success"/> property. If a match
298/// is found, the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Capture.Value"/> property contains the
302/// You can retrieve subsequent matches by repeatedly calling the returned <see cref="System.Text.RegularExpressions.Match"/> object's
303/// <see cref="Match.NextMatch"/> method. You can also retrieve all matches in a single method call by
307public static Match Match(string input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) =>
334/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Group.Success"/> property. You can
335/// retrieve subsequent matches by repeatedly calling the returned <see cref="System.Text.RegularExpressions.Match"/> object's
336/// <see cref="Match.NextMatch"/> method. You can also retrieve all matches in a single method call by
340public static Match Match(string input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) =>
372/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Group.Success"/> property. You can
373/// retrieve subsequent matches by repeatedly calling the returned <see cref="System.Text.RegularExpressions.Match"/> object's
374/// <see cref="Match.NextMatch"/> method.
385public static Match Match(string input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) =>
403/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Group.Success"/> property. If a match
404/// is found, the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Capture.Value"/> property contains the
409/// returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Match.NextMatch"/> method. You can also retrieve all
423public Match Match(string input)
450public Match Match(string input, int startat)
501/// repeatedly calling the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Match.NextMatch"/> method.
504public Match Match(string input, int beginning, int length)
520/// A collection of the <see cref="System.Text.RegularExpressions.Match"/> objects found by the search. If no matches are found, the
562/// A collection of the <see cref="System.Text.RegularExpressions.Match"/> objects found by the search. If no matches are found, the
609/// A collection of the <see cref="System.Text.RegularExpressions.Match"/> objects found by the search. If no matches are found, the
654/// A collection of the <see cref="System.Text.RegularExpressions.Match"/> objects found by the search. If no matches are found, the
696/// A collection of the <see cref="System.Text.RegularExpressions.Match"/> objects found by the search. If no matches are found, the
System\Text\RegularExpressions\Regex.Replace.cs (12)
12/// <param name="match">The <see cref="Match"/> object that represents a single regular expression
21/// <see cref="MatchEvaluator"/> delegate method with a <see cref="Match"/> object that represents
25public delegate string MatchEvaluator(Match match);
27internal delegate bool MatchCallback<TState>(ref TState state, Match match);
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
538/// first <paramref name="count"/> <see cref="System.Text.RegularExpressions.Match"/> objects in the returned
587/// The method passes the first <paramref name="count"/> <see cref="System.Text.RegularExpressions.Match"/> objects to the
634regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (StructListBuilder<ReadOnlyMemory<char>> segments, MatchEvaluator evaluator, int prevat, string input, int count) state, Match match) =>
653regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (StructListBuilder<ReadOnlyMemory<char>> segments, MatchEvaluator evaluator, int prevat, string input, int count) state, Match match) =>
System\Text\RegularExpressions\Regex.Split.cs (2)
299regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (List<string> results, int prevat, string input, int count) state, Match match) =>
327regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (List<string> results, int prevat, string input, int count) state, Match match) =>
System\Text\RegularExpressions\RegexReplacement.cs (5)
126public void ReplacementImpl(ref StructListBuilder<ReadOnlyMemory<char>> segments, Match match)
157public void ReplacementImplRTL(ref StructListBuilder<ReadOnlyMemory<char>> segments, Match match)
235regex.RunAllMatchesWithCallback(input, startat, ref state, (ref (string input, string replacement, StructListBuilder<int> segments, ReadOnlyMemory<char> inputMemory, int prevat, int count) state, Match match) =>
302regex.RunAllMatchesWithCallback(input, startat, ref state, (ref (RegexReplacement thisRef, StructListBuilder<ReadOnlyMemory<char>> segments, ReadOnlyMemory<char> inputMemory, int prevat, int count) state, Match match) =>
322regex.RunAllMatchesWithCallback(input, startat, ref state, (ref (RegexReplacement thisRef, StructListBuilder<ReadOnlyMemory<char>> segments, ReadOnlyMemory<char> inputMemory, int prevat, int count) state, Match match) =>
System\Text\RegularExpressions\RegexRunner.cs (8)
100protected internal Match? runmatch;
165protected Match? Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick) =>
173protected internal Match? Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout)
205return Match.Empty;
211Match match = InternalScan(regex, textbeg, textend);
233private Match InternalScan(Regex regex, int textbeg, int textend)
270return Match.Empty;
289Match? m = runmatch;
System.Windows.Forms (1)
TaskUsageLogger (1)
Templates.Blazor.Tests (5)
Templates.Blazor.WebAssembly.Auth.Tests (4)
Templates.Blazor.WebAssembly.Tests (4)
Templates.Mvc.Tests (4)
Templates.Tests (4)
Test.Utilities (6)
Text.Analyzers (6)
VersioningWebSite (1)
XmlFileLogger (1)
xunit.assert (4)
xunit.console (1)