Extract Path from URL
| From: | Herhuth, Ron | Date: | Mon, 06 Jan 2003 14:51:05 +0000 |
| Subject: | Extract Path from URL | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17671@lists.php.net to get a copy of this message | ||
I'm having a tough time getting my head around regular expressions. Could somebody show me how
to extract the path (minus the file name) from this URL:
http://www.test.com/path1/thisdoc.html
I would like to extract this:
http://www.test.com/path1/
Thanks in advance,
Ron