Jump to content

preg match ? getting "image.jpg" from http://www.google.com/images/image.jpg"


Giddy Rob

Recommended Posts

Hi,

 

I want to separate out the file name from an image url. Not sure the best way to do it? I want to basically select all text after the last / slash. eg - image.jpg would be the result from http://www.google.com/images/image.jpg

 

What's the best way to do it?

 

Cheers

 

Rob

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.