

NET defines the substitution elements listed in the following table. The methods replace the matched pattern with the pattern that is defined by the replacement parameter. Replacement patterns are provided to overloads of the Regex.Replace method that have a replacement parameter and to the Match.Result method.


The replacement pattern can consist of one or more substitutions along with literal characters. They use a regular expression pattern to define all or part of the text that is to replace matched text in the input string. Substitutions are language elements that are recognized only within replacement patterns.
