var str = 'http://bla.org/bla/http://site.com/'; str = str.replace(/http:\/\/bla\.org\/bla\//g, ""); alert(str)