node js string replace all code example Example: replace all javascript str.split(search).join(replacement);