59 references to Matches
aspire (7)
Documentation\Docs\DocsIndexService.cs (3)
966foreach (Match match in MarkdownFenceBlockRegex().Matches(content)) 1205.Matches(source.Content) 1212.Matches(source.Content)
Projects\FallbackProjectParser.cs (1)
308var matches = PackageDirectiveRegex().Matches(fileContent);
Telemetry\InternalMicrosoftDetector.cs (3)
873foreach (Match match in JwtRegex().Matches(text)) 932foreach (Match match in MicrosoftAccountRegex().Matches(text)) 1028foreach (Match match in GitHubTokenRegex().Matches(text))
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
134var matches = TargetFrameworkPropertyRegex().Matches(csprojContent);
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptApiProjector.cs (1)
583foreach (Match match in DeclaredTypeNameRegex().Matches(declaration.Content))
Aspire.Hosting.CodeGeneration.TypeScript.Tests (6)
AtsTypeScriptCodeGeneratorTests.cs (6)
1247foreach (Match match in s_promiseDeclarationPattern.Matches(StripComments(source))) 1268foreach (Match match in s_promiseReferencePattern.Matches(StripCommentsAndStringLiterals(aspireTs))) 1371foreach (Match match in s_implementationConstructorPattern.Matches(aspireTs)) 1380foreach (Match match in s_rpcHandleConstructionPattern.Matches(aspireTs)) 2848var declared = s_apiDeclarationPattern.Matches(completeSource) 2859var referenced = s_apiTypeReferencePattern.Matches(StripCommentsAndStringLiterals(packageSource))
Aspire.Templates.Tests (2)
LocalhostTldHostnameTests.cs (1)
95var 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);
illink (1)
Infrastructure.Tests (3)
PowerShellScripts\ScanTestPartitionsFromSourceGuardTests.cs (2)
70var covered = s_standaloneLiteral.Matches(content) 74foreach (Match m in s_anyPartitionTrait.Matches(content))
TestTriggerMap\TestTriggerMapTests.cs (1)
631.SelectMany(f => usesLocalAction.Matches(File.ReadAllText(f)).Select(m => m.Groups["name"].Value))
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 (2)
CommandLine\AnalyzerConfig.cs (2)
221var sectionMatches = GetSectionMatcherRegex().Matches(line); 235var propMatches = GetPropertyMatcherRegex().Matches(line);
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 (2)
AbstractResxGenerator.cs (2)
873var match = _namedParameterMatcher.Matches(value); 878match = _numberParameterMatcher.Matches(value);
Microsoft.CodeAnalysis.Workspaces (1)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
452var matches = regex.Matches(renameString);
Microsoft.DotNet.Arcade.Sdk (2)
src\GenerateResxSource.cs (2)
498var match = _namedParameterMatcher.Matches(value); 503match = _numberParameterMatcher.Matches(value);
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateWixBuildWixpack.cs (2)
232foreach (Match match in regex.Matches(content)) 643foreach (Match match in regex.Matches(content))
Microsoft.DotNet.XliffTasks (1)
StringExtensions.cs (1)
46foreach (Match placeholder in s_placeholderRegex.Matches(text))
Microsoft.Maui.Controls (1)
ShadowTypeConverter.cs (1)
79 var matches = regex.Matches(strValue);
Microsoft.ML.InternalCodeAnalyzer (1)
NameFixProvider.cs (1)
123foreach (Match match in _sections.Matches(name))
Microsoft.ML.TestFramework (2)
BaseTestBaseline.cs (2)
576MatchCollection firstCollection = _matchNumbers.Matches(firstString); 577MatchCollection secondCollection = _matchNumbers.Matches(secondString);
Microsoft.NET.Build.Containers (1)
AuthHandshakeMessageHandler.cs (1)
137foreach (Match match in BearerParameterSplitter().Matches(bearerHeaderArgs))
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
ValueForms\KebabCaseValueFormFactory.cs (1)
22return string.Join("-", pattern.Matches(value).Cast<Match>().Select(m => m.Value)).ToLowerInvariant();
System.Text.RegularExpressions (14)
System\Text\RegularExpressions\Match.cs (2)
17/// objects is returned by the <see cref="Regex.Matches(string)"/> method. 20/// If the <see cref="Regex.Matches(string)"/> method fails to match a regular expression pattern in
System\Text\RegularExpressions\MatchCollection.cs (2)
13/// constructor. The <see cref="Regex.Matches(string)" /> method returns a 32/// with all matches resulting from a particular call to the <see cref="Regex.Matches(string)" />
System\Text\RegularExpressions\Regex.Match.cs (8)
194/// subsequent manipulation, call the <see cref="Match(string)"/> or <see cref="Matches(string)"/> method. 410/// matches in a single method call by calling <see cref="Matches(string)"/>. 608RegexCache.GetOrAdd(pattern).Matches(input); 653RegexCache.GetOrAdd(pattern, options, s_defaultMatchTimeout).Matches(input); 703RegexCache.GetOrAdd(pattern, options, matchTimeout).Matches(input); 716/// The <see cref="Matches(string)"/> method is similar to the <see cref="Match(string)"/> method, 721/// The <see cref="Matches(string)"/> method uses lazy evaluation to populate the returned 728/// Because of its lazy evaluation, calling the <see cref="Matches(string)"/> method does not throw a
System\Text\RegularExpressions\Regex.Replace.cs (2)
492/// The method is equivalent to calling the <see cref="Regex.Matches(string)"/> method and passing each 537/// The method is equivalent to calling the <see cref="Regex.Matches(string)"/> method and passing the