function _replaceAll (find, replace, str) {
  // Escape find
  find = find.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, '\\$1')
  return str.replace(new RegExp(find, 'g'), replace)
}
// Replace all occorrencies of a string in another using RegExp
Replace all occorrencies of a string in another using RegExp
Replace all occorrencies of a string in another using RegExp
function _replaceAll (find, replace, str) {
  find = find.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, '\\$1')
  return str.replace(new RegExp(find, 'g'), replace)
}
function _replaceAll ( find , replace , str ) { find = find . replace ( / ([.*+?^=!:${}()|\[\]\/\\]) / g , '\\$1' ) return str . replace ( new RegExp ( find , 'g' ) , replace ) }
Replace all occorrencies of a string in another using RegExp
Replace all occorrencies of a string in another using RegExp
// Escape find