I'm certainly not a regex whiz, but this seems to do what you want. It will handles "."'s within the filename, and gives you the string after the last dot.$string =~ s/.*\.(.*)$/$1/;
In reply to Re: Extracting just the extension from a filename.
by dug
in thread Extracting just the extension from a filename.
by brentheigold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |