in reply to Re: Regex To Remove File Extension
in thread Regex To Remove File Extension
/\..*?$/ won't work because it still matches off the first period - I thought of that one at first, too. The second expression(/\.[^.]+$/) works fine.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Regex To Remove File Extension
by dreadpiratepeter (Priest) on Dec 10, 2008 at 19:18 UTC | |
by kennethk (Abbot) on Dec 10, 2008 at 19:24 UTC |
In Section
Seekers of Perl Wisdom