P is for Practical | |
PerlMonks |
Re^2: Regex To Remove File Extensionby kennethk (Abbot) |
on Dec 10, 2008 at 19:07 UTC ( [id://729481]=note: print w/replies, xml ) | Need Help?? |
/\..*?$/ won't work because it still matches off the first period - I thought of that one at first, too. The second expression(/\.[^.]+$/) works fine.
In Section
Seekers of Perl Wisdom
|
|