Menu
Hi,
I need a statement to replace all old_char(s) with the new_char.
Looks like javascript replace() function only raplaces the first one.
st=’ABBACCADD’
st=st.replace(‘A’,’M’);
st=’MBBACCADD’ <– this is the current output.
st=’MBBMCCMDD’ <– This is what i want.
Please advice.