javascript string replace all
  • Replace all occurences of a substr:
str = str.replace(/find/g,'replace')
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License