22 references to Match
aspire (1)
src\Shared\ContainerRuntimeProbe.cs (1)
479var match = Regex.Match(output, @"[Vv]ersion\s*:?\s*(\d+\.\d+(?:\.\d+)?)", RegexOptions.IgnoreCase);
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2ETestHelpers.cs (1)
850var match = Regex.Match(finalUrl, @"aspire-cli-[^/]+?-(?<version>\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?)\.tar\.gz", RegexOptions.IgnoreCase);
Aspire.Cli.Tests (4)
Agents\AgentTelemetryHookTests.cs (1)
163var body = Regex.Match(script, $@"\${name} = @\((.*?)\)", RegexOptions.Singleline).Groups[1].Value;
Commands\GoAppHostToolingCheckTests.cs (1)
549var directive = Regex.Match(File.ReadAllText(sourcePath), @"^\s*go (\d+\.\d+)\s*$", RegexOptions.Multiline);
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\ContainerRuntimeProbe.cs (1)
479var 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.Go.Tests (1)
AtsGoDerivedBuilderTests.cs (1)
455var declaration = Regex.Match(generated, $@"^type {interfaceName} interface \{{\r?\n(?<body>.*?)^\}}", RegexOptions.Multiline | RegexOptions.Singleline);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (4)
AtsTypeScriptCodeGeneratorTests.cs (4)
1395var volumeInterface = Regex.Match(generatedCode, @"^export interface KubernetesPersistentVolumeResource \{.*?^\}", 1397var callback = Regex.Match(volumeInterface.Value, @"^\s+withConfiguration\(.*$", RegexOptions.Multiline); 1402var match = Regex.Match(generatedCode, $@"^export interface {name} \{{.*?^\}}", 2547var match = Regex.Match(code, $@"^export interface {Regex.Escape(name)} \{{.*?^\}}", RegexOptions.Multiline | RegexOptions.Singleline);
Infrastructure.Tests (2)
WorkflowScripts\AutoSecWorkflowTests.cs (2)
4815var start = Regex.Match(text, startPattern, options); 4817var end = Regex.Match(text[(start.Index + start.Length)..], endPattern, options);
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))
NativeIntegrations.DockerCompose (1)
DockerComposeEnvironment.cs (1)
234var match = Regex.Match(version, @"^v?(\d+)\.(\d+)(?:\.\d+)?(?:[-+][a-zA-Z0-9.-]+)?$", RegexOptions.CultureInvariant);
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