replaceAll
text replaceAll(text, regex, replacement)
Replaces each substring in text that matches the regular expression with the given replacement.
Parameters
- text — text to be matched.
- regex — regular expression to match against.
- replacement — optional replacement text, default is no replacement.
Returns
- the text with substrings replaced.