I want to remove the hostname from all the background css declarations I have in a html page
ie
<div style="background:transparent url(http://www.some-domain.com/images/test.png) no-repeat"></div>
to become
<div style="background:transparent url(images/test.png) no-repeat"></div>
Any ideas guys?
Thanks
replace the regex “http://[^/]*” with “/”.