Re: match file name at end of a http url



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
.