I'm so bad at regexp, but I'm trying to get some/path/image.jpg
out of http://somepage.com/some/...etc
and trying this method:
function removeDomain($string) {
return preg_replace("/http:\/\/.*\//", "", $string);
}
It isn't working -- so far as I can tell it's just returning a blank string. How do I write this regexp?