This function replaces all substrings matching the given regular expression with a given replacement. |
replaceAll(text, regex, replacement) #Output: Text |
|
Parameters used in this function
|
This function returns a
|
If you want to replace only the first matching occurrence, have a look at the replaceFirst() function.
If you don't want to use a regular expression, have a look at the findReplaceAll() function. |
|
|