in reply to Regex to match file extension in URL
$myvar =~ /\.html$/;
The $ will anchor the match to the end of the string.
If that wasn't what you wanted, could you provide examples of what you want as a result of the match?
/J
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex to match file extension in URL
by Amoe (Friar) on Sep 09, 2001 at 16:26 UTC | |
by Trimbach (Curate) on Sep 09, 2001 at 16:44 UTC | |
by Amoe (Friar) on Sep 09, 2001 at 17:15 UTC | |
by Trimbach (Curate) on Sep 09, 2001 at 19:07 UTC |