Javascript String replaceAllRegExp(find, replace)

Description

Javascript String replaceAllRegExp(find, replace)


String.prototype.replaceAllRegExp = function(find, replace){
  return this.replace( new RegExp( find, "g" ), replace );
};



PreviousNext

Related