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