19 references to Match
aspire (1)
src\Shared\ContainerRuntimeDetector.cs (1)
407var match = Regex.Match(output, @"[Vv]ersion\s*:?\s*(\d+\.\d+(?:\.\d+)?)", RegexOptions.IgnoreCase);
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2ETestHelpers.cs (1)
802var match = Regex.Match(finalUrl, @"aspire-cli-[^/]+?-(?<version>\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?)\.tar\.gz", RegexOptions.IgnoreCase);
Aspire.Cli.Tests (3)
Agents\AgentTelemetryHookTests.cs (1)
139var body = Regex.Match(script, $@"\${name} = @\((.*?)\)", RegexOptions.Singleline).Groups[1].Value;
Mcp\ListConsoleLogsToolTests.cs (1)
532var match = Regex.Match(text, @"```plaintext\s*(.*?)\s*```", RegexOptions.Singleline);
Npm\AspireJsLauncherTests.cs (1)
187var supportedRidsMatch = Regex.Match(scriptContent, @"\$supportedRids\s*=\s*@\((?<rids>[^)]*)\)", RegexOptions.Singleline);
Aspire.Hosting (1)
src\Shared\ContainerRuntimeDetector.cs (1)
407var match = Regex.Match(output, @"[Vv]ersion\s*:?\s*(\d+\.\d+(?:\.\d+)?)", RegexOptions.IgnoreCase);
Aspire.Hosting.Azure.Tests (1)
AzureSqlPrincipalReconciliationTests.cs (1)
211var match = Regex.Match(
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
2364var match = Regex.Match(code, $@"^export interface {Regex.Escape(name)} \{{.*?^\}}", RegexOptions.Multiline | RegexOptions.Singleline);
Infrastructure.Tests (5)
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (1)
530var match = Regex.Match(
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (1)
676var match = System.Text.RegularExpressions.Regex.Match(
WorkflowScripts\PrDocsCheckWorkflowTests.cs (3)
355var match = Regex.Match( 365var run = Regex.Match( 369var env = Regex.Match(
Microsoft.Extensions.AI.Evaluation.Quality (1)
EvaluationMetricExtensions.cs (1)
117Match match = Regex.Match(text, $@"<{tagName}>(?<value>.*?)</{tagName}>", Options);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\HardcodedValueFileSystem.cs (1)
40.Select(x => Regex.Match(x, pattern, RegexOptions.IgnoreCase))
NuGet.Configuration (1)
PackageSource\PackageSourceProvider.cs (1)
375var match = Regex.Match(rawCredentials!.Trim(), @"^Username=(?<user>.*?);\s*Password=(?<pass>.*?)(?:;ValidAuthenticationTypes=(?<authTypes>.*?))?$", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Regex.Match.cs (3)
76/// <see cref="Match(string, string, RegexOptions)"/> or 328/// The static <see cref="Match(string, string, RegexOptions)"/> method is equivalent to constructing a 631/// <see cref="Match(string, string, RegexOptions)"/> method, except that it returns information about all