Regular expression (regex / regexp) replace function #16461
Labels
enhancement
New feature or request
intermediate language
Related to the intermediate language
new function
Milestone
Is your feature request related to a problem? Please describe.
replace
is useful, but sometimes simple string replacements aren't enough and one needs regular expressions replacements.Describe the solution you'd like
A function like
replaceRegex
with a signature similar to what we have in .NET:public static string Replace(string input, string pattern, string replacement, System.Text.RegularExpressions.RegexOptions options)
https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.replace?view=net-9.0#system-text-regularexpressions-regex-replace(system-string-system-string-system-string-system-text-regularexpressions-regexoptions
It can also help with multiple replacements as requested here: #5703
The text was updated successfully, but these errors were encountered: