Re: match file name at end of a http url
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Tue, 25 Apr 2006 20:55:30 -0700
On 4/25/06, nishanth ev <nishanth_ev@xxxxxxxxx> wrote:
if( $url =~ /\/([\w.]*$)/ ){
print $1;
}
http://example.com/some-file.txt
To process a URL requires more than a simple pattern
match. Use a
module from CPAN. Cheers!
What I said.
--Tom Phoenix
Stonehenge Perl Training
.
- Follow-Ups:
- Re: match file name at end of a http url
- From: Ken Perl
- Re: match file name at end of a http url
- From: Kelvin Wu
- Re: match file name at end of a http url
- References:
- Re: match file name at end of a http url
- From: Tom Phoenix
- Re: match file name at end of a http url
- From: Nishanth Ev
- Re: match file name at end of a http url
- Prev by Date: Re: match file name at end of a http url
- Next by Date: Re: Help in checking the OS type...
- Previous by thread: Re: match file name at end of a http url
- Next by thread: Re: match file name at end of a http url
- Index(es):