Replacement Patterns
The characters in the following table have special meaning only in replacement patterns .
|
Character |
Pattern |
|
|
Turn off the special meaning of the following character. |
|
|
Reuse the text matched by the
nth subpattern previously saved by
|
|
|
Reuse the text matched by the search pattern as part of the replacement pattern. |
|
|
Reuse the previous replacement pattern in the current replacement pattern. Must be the only character in the replacement pattern (ex and vi). |
|
|
Reuse the previous replacement pattern in the current replacement pattern. Must be the only character in the replacement pattern (ed). |
|
|
Convert first character of replacement pattern to uppercase. |
|
|
Convert entire replacement pattern to uppercase. |
|
|
Convert first character of replacement pattern to lowercase. |
|
|
Convert entire replacement pattern to lowercase. |
|
|
Turn off previous |
|
|
Turn off previous |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access