But for filename manipulations such as the ones you're doing, I would recommend File::Basename. No need to reinvent the wheel with the risk of inventing a square one...use strict; my $filename="camel.flea"; $filename=~s/\w+(\.\w+)$/$1/; # Warning: untested
CU
Robartes-
In reply to Re: Regex Problems
by robartes
in thread Regex Problems
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |