I need to replace all instances of a sub-string in a string
I am using
A1.toString().replace(to_replace,replace_with)
But it is only replacing the first instance
Ex
to_replace = ",@"
replace_with = "|"
I get for a cell value
a,@b,@c,@d >> a|b,@c,@d
I need
a,@b,@c,@d >> a|b|c|d
I can not figure out if their is a setting to replace all not just the first instance
Thanks