var str = 'http://bla.org/bla/http://site.com/';
http://bla.org/bla/
str = str.replace(/http:\/\/bla.org\/bla\//g, "");
var str = 'http://bla.org/bla/http://site.com/'; str = str.replace(/http:\/\/bla\.org\/bla\//g, ""); alert(str)
s="http://foo.bar/http://baz.bar" alert(s.replace(/http:\/\/.+(http:\/\/.+)/, "$1"))