Character
|
Meaning
|
|
$123
|
Substitutes the last substring matched by group number 123 (decimal).
|
|
${name}
|
Substitutes the last substring matched by named group 'name'
|
|
$$
|
Substitutes a single "$" literal.
|
|
$&
|
Substitutes a copy of the entire match itself.
|
|
$`
|
Substitutes all the text of the input string before the match.
|
|
$'
|
Substitutes all the text of the input string after the match.
|
|
$+
|
Substitutes the last group captured.
|
|
$_
|
Substitutes the entire input string
|
|