Pastetool - replaceALL_re

URL: , Paste another

String.prototype.replaceALL_re = function(sFrom, sTo) {
	var re = new RegExp('('+sFrom+')', 'g');
	return this.replace(re, sTo);
}

Download code

This javascript code was pasted on September 11, 2009




Protected with advance Anti-SPAM techniques :)
Coded and designed by Fedmich
Follow us on Twitter