$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
In reply to Re: Regex to match file extension in URL
by jplindstrom
in thread Regex to match file extension in URL
by Amoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |