por qué dices que no funciona replace como tú quieres??
Cita: function fnc() {
var str = document.body.innerHTML;
str = str.replace(/http:\/\/imgserver(.+)\.jpg/g, '<img src="http:\/\/imgserver$1\.jpg" \/>');
document.body.innerHTML = str;
}
window.onload = function() {fnc();};