in reply to Regex To Remove File Extension
You have plenty of good examples to chose from. This might work for you also:
Jamiemy $string = 'foo.bar.txt'; $string =~ s/\.\w{3}$//;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regex To Remove File Extension
by grep (Monsignor) on Dec 10, 2008 at 21:09 UTC | |
by n3toy (Hermit) on Dec 11, 2008 at 01:08 UTC |
In Section
Seekers of Perl Wisdom