replaceAll
Replaces all occurrences of the searchValue
in the str
with the replaceValue
.
str
( string
): The input string.searchValue
( string
): The substring to replace.replaceValue
( string
): The string to replace with.string
): A new string with all occurrences of the search value replaced.