21 references to Matches
AnalyzeCiFailure (3)
CauseIssueRenderer.cs (1)
371=> Regex.Matches(body, "^" + Regex.Escape(marker) + @"(?=\r?$)", RegexOptions.Multiline | RegexOptions.CultureInvariant);
OverflowIssueRenderer.cs (2)
50var starts = Regex.Matches(existing, "^" + Regex.Escape(Start) + @"\r?$", RegexOptions.Multiline | RegexOptions.CultureInvariant); 51var ends = Regex.Matches(existing, "^" + Regex.Escape(End) + @"\r?$", RegexOptions.Multiline | RegexOptions.CultureInvariant);
Aspire.Cli.EndToEnd.Tests (1)
RadiusDeployTests.cs (1)
630var emittedTypes = Regex.Matches(appBicep, @"^resource\s+\S+\s+'(?<type>[^']+)'", RegexOptions.Multiline)
Aspire.Cli.Tests (1)
Utils\TerminalLinkAssert.cs (1)
20var matches = Regex.Matches(output, segmentPattern, RegexOptions.Singleline);
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdApiProvisioningTests.cs (1)
1378var symbols = System.Text.RegularExpressions.Regex.Matches(bicep, @"^(?:param|resource) (\S+)", System.Text.RegularExpressions.RegexOptions.Multiline)
Aspire.Hosting.CodeGeneration.Go.Tests (4)
AtsGoDerivedBuilderTests.cs (4)
106Assert.Single(Regex.Matches(generated, @"^var AnyPoolResource = struct \{", RegexOptions.Multiline)); 119Assert.Single(Regex.Matches(generated, @"^\tAnyPoolResource AnyPool = ""Resource""", RegexOptions.Multiline)); 449Regex.Matches(generated, @"^type (Any\w+) interface ", RegexOptions.Multiline) 475Regex.Matches(generated, $@"^func \(s \*{implName}\) ({methodPrefix}[^\r\n]*) \{{\r?$", RegexOptions.Multiline)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
485foreach (Match import in Regex.Matches(content, @"^import\s+(?:static\s+)?([\w.]+)\.(\w+);", RegexOptions.Multiline))
Aspire.Hosting.Radius.Tests (3)
Publishing\RadiusDeployParametersTests.cs (3)
357var declarations = Regex.Matches(bicep, @"^@secure\(\)\r?\n\s*param sharedSecret ", RegexOptions.Multiline); 385var declarations = Regex.Matches(bicep, @"^@secure\(\)\r?\n\s*param radiusenv ", RegexOptions.Multiline); 413var declared = Regex.Matches(bicep, @"^\s*param (?<name>\w+) ", RegexOptions.Multiline)
Infrastructure.Tests (2)
WorkflowScripts\AutoSecWorkflowTests.cs (2)
4572Regex.Matches(approvalInputs, "^ ([a-z_]+):\r?$", RegexOptions.Multiline).Select(match => match.Groups[1].Value).Order(StringComparer.Ordinal)); 4627Assert.Equal(2, Regex.Matches(source, "^ patch-format: am\r?$", RegexOptions.Multiline).Count);
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Regex.Match.cs (5)
77/// <see cref="Matches(string, string, RegexOptions)"/> method instead. 337/// calling the <see cref="Matches(string, string, RegexOptions)"/> method. 630/// The <see cref="Matches(string, string, RegexOptions)"/> method is similar to the 639/// The <see cref="Matches(string, string, RegexOptions)"/> method uses lazy evaluation to populate the 646/// Because of its lazy evaluation, calling the <see cref="Matches(string, string, RegexOptions)"/>