replaceAll

Replaces all matches of the regular expression with the replacement value.
Accepts
Returns
Syntax
replaceAll(text, pattern, replacement?) text.replaceAll(pattern, replacement?)

replaceAll(
    "Ben S. and S.", 
    "S.", 
    "Something"
)
=
Ben Something and Something "Ben Something and Something"