I was wondering how I'd go about replacing multiple same words with another string.
ex.
"abc I abc was abc going abc to abc bed."
to
"* I * was * going * to * bed."
(which is an example where 'abc' would be changed to '*')
I tried replace("abc", "*");
but I've noticed this only changes the first abc
token that appears in the string and leaves all the others intact.
Any ideas?