use cgi to parse a url?

They have: 2 posts

Joined: Jun 2000

Hi,

I'm trying to figure out how to parse a url and return just the filename. For example, take the following url:

"http://www.moochers.com/vbrun100.zip"

and return the value of "vbrun100.zip"

This needs to be a dynamic script that removes the urls, I have thousands of different urls to parse, so it can't just be set to remove the http://www.moochers.com/ line. I know I read about how to do this, but I can't remember where and I appreciate anyone who can tell me how or point me in the right direction.

Thanks!

------------------
Kevin Johnson
http://greatriverdesign.com/
http://www.moochers.com/
http://ludicrous.net/