in reply to Re: A better way? Extracting filename from url
in thread A better way? Extracting filename from url
So a second substitution (I'm sure you can do it with a lookahead assertion or similar, but that seems a bit overkill) is probably in order:
$file =~ s/\?.*//;
Cheers,
-- moodster
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: A better way? Extracting filename from url
by Gerard (Pilgrim) on Jan 15, 2002 at 02:23 UTC |