23 references to Replace
aspire (3)
Documentation\ApiDocs\ApiDocsSourceConfiguration.cs (1)
135return LocalMarkdownLinkRegex().Replace(markdown, match =>
Documentation\Docs\DocsSourceConfiguration.cs (1)
83return MarkdownLinkRegex().Replace(markdown, match =>
Utils\Markdown\MarkdownLinkConverter.cs (1)
20return LinkRegex().Replace(markdown, match =>
Aspire.Hosting.Kubernetes (2)
Deployment\HelmDeploymentEngine.cs (1)
393return HelmValuesExpressionRegex().Replace(template, match =>
Extensions\HelmExtensions.cs (1)
131return EndWithNonStringTypePattern().Replace(value, match =>
Aspire.Hosting.Radius (1)
Publishing\BicepPostProcessor.cs (1)
123return RecipePackWithoutProperties().Replace(bicep, m =>
dotnet (1)
SlnFileFactory.cs (1)
163return GetInvalidJsonBackslashRegex().Replace(json, match =>
dotnet-aot (1)
src\sdk\src\Cli\dotnet\SlnFileFactory.cs (1)
163return GetInvalidJsonBackslashRegex().Replace(json, match =>
Microsoft.DotNet.SourceBuild.Tasks (2)
src\WriteBuildOutputProps.cs (2)
121string formattedId = InvalidElementNameCharRegex.Replace( 131string formattedId = InvalidElementNameCharRegex.Replace(
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
OverrideHtmlAssetPlaceholders.cs (3)
69string outputContent = _importMapRegex.Replace(content, e => 76outputContent = _preloadRegex.Replace(outputContent, e => 83outputContent = _assetsRegex.Replace(outputContent, e =>
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
476return InvalidXmlCharsRegex.Replace(str, m => $@"\u{(ushort)m.Value[0]:x4}");
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
1102string attributeValue = EscapedXmlEntities.Replace(
System.Text.RegularExpressions (8)
System\Text\RegularExpressions\Regex.Replace.cs (8)
10/// <see cref="Regex.Replace(string, MatchEvaluator)"/> method operation. 13/// match during a <see cref="Regex.Replace(string, MatchEvaluator)"/> method operation.</param> 19/// <see cref="Regex.Replace(string, MatchEvaluator)"/>. For each matched string, the 20/// <see cref="Regex.Replace(string, MatchEvaluator)"/> method calls the 23/// the <see cref="Regex.Replace(string, MatchEvaluator)"/> method substitutes for the matched string. 355RegexCache.GetOrAdd(pattern).Replace(input, evaluator); 406RegexCache.GetOrAdd(pattern, options, s_defaultMatchTimeout).Replace(input, evaluator); 466RegexCache.GetOrAdd(pattern, options, matchTimeout).Replace(input, evaluator);