Title here
Summary here
Certain Unicode characters, when uppercased, actually expand in length.
When using the replace
function, only the first occurrence will be replaced by default:
If the pattern is an empty string, the replacement is prepended to the start of the string:
The replacement string can include the following special replacement patterns:
Pattern | Inserts |
---|---|
$$ | Inserts a “$”. |
$& | Inserts the matched substring. |
$` | Inserts the portion of the string that precedes the matched substring. |
$' | Inserts the portion of the string that follows the matched substring. |
$n | Inserts the nth (1-indexed) capturing group where n is a positive integer less than 100. |
$<Name> | Inserts the named capturing group where Name is the group name. |
Here is some examples: