| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > Text > replaceAll
Returns the same thing as targetString.replace(searchValue, replaceValue), except that all matches are replaced, rather than just the first match.
Signature:
static replaceAll(input: string, searchValue: string, replaceValue: string): string;|
Parameter |
Type |
Description |
|---|---|---|
|
input |
string |
The string to be modified |
|
searchValue |
string |
The value to search for |
|
replaceValue |
string |
The replacement text |
Returns:
string