How does regex substitution work?

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

Read more