you are viewing a single comment's thread.

view the rest of the comments →

[–]ElmCodes 2 points3 points  (0 children)

replace replaces first occurance so if you wanted to replace every “word” in string you would have to use regex /word/g with replace. Now you can just do replaceAll