RE: [PHP] get name of file
| From: | Jack Dempsey | Date: | Tue, 20 Mar 2001 02:56:44 +0000 |
| Subject: | RE: [PHP] get name of file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44674@lists.php.net to get a copy of this message | ||
matthew,
that'd be a complex regexp...there are lots of books and tutorials on
them...definitely worth learning...
search google for regular expression tutorial...you'll find tons of hits,
like this:
http://gosling.miass.chel.su/books/Perl/3/RegExp_Tutorial.html
-jack
-----Original Message-----
From: Matthew Delmarter [mailto:matt@adplusonline.com]
Sent: Monday, March 19, 2001 9:52 PM
To: PHP Mailing List
Subject: [PHP] get name of file
How do I return the name of a file without any extensions or path info.
Eg how do I return "about" from "http://www.domainz.com/about.htm".
Regards,
Matthew Delmarter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net