16 references to Replace
Microsoft.Build (4)
Evaluation\Expander.cs (4)
955
result = RegularExpressions.ItemMetadataRegex.
Replace
(expression, new MatchEvaluator(matchEvaluator.ExpandSingleMetadata));
986
string replacementResult = RegularExpressions.NonTransformItemMetadataRegex.
Replace
(subExpressionToReplaceIn, new MatchEvaluator(matchEvaluator.ExpandSingleMetadata));
1011
string replacementResult = RegularExpressions.NonTransformItemMetadataRegex.
Replace
(subExpressionToReplaceIn, new MatchEvaluator(matchEvaluator.ExpandSingleMetadata));
2722
include = RegularExpressions.ItemMetadataRegex.
Replace
(arguments[0], matchEvaluator.GetMetadataValueFromMatch);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Semantics\SpeculationAnalyzerTestsBase.cs (1)
35
var initialTree = Parse(UnderTestRegex.
Replace
(code, m => m.Groups["content"].Value));
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\SourceMarkers.cs (1)
35
=> s_tags.
Replace
(source, m => new string(' ', m.Length));
Microsoft.CodeAnalysis.Test.Utilities (2)
CompilationVerifier.cs (1)
213
return s_codeSizeCommentsRegex.
Replace
(output, match => match.Groups[0].Value.Replace(match.Groups[1].Value, ""));
MarkedSource\SourceWithMarkedNodes.cs (1)
82
return s_tags.
Replace
(source, m => new string(' ', m.Length));
Microsoft.DotNet.SourceBuild.Tasks (2)
src\WriteBuildOutputProps.cs (2)
121
string formattedId = InvalidElementNameCharRegex.
Replace
(
131
string formattedId = InvalidElementNameCharRegex.
Replace
(
Microsoft.DotNet.VersionTools (1)
Dependencies\FileRegexUpdater.cs (1)
73
string replacement = regex.
Replace
(input, m =>
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
1099
string attributeValue = EscapedXmlEntities.
Replace
(
1128
string attributeValue = EscapedXmlEntities.
Replace
(
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Regex.Replace.cs (3)
91
RegexCache.GetOrAdd(pattern).
Replace
(input, evaluator);
98
RegexCache.GetOrAdd(pattern, options, s_defaultMatchTimeout).
Replace
(input, evaluator);
101
RegexCache.GetOrAdd(pattern, options, matchTimeout).
Replace
(input, evaluator);