Howto - JavaScript Replace which finds all instances not just the first
Posted
by nobosh
on Stack Overflow
See other posts from Stack Overflow
or by nobosh
Published on 2010-05-26T04:58:42Z
Indexed on
2010/05/26
5:01 UTC
Read the original article
Hit count: 277
I have the following function:
listorder = listorder.replace('projectlist-','');
Problem with this is it only finds and replace the first instance and there are many. How can this be updated to Find/Replace All instances in the string?
Thanks
© Stack Overflow or respective owner