Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My problem is that I wanna just get the .htm off apple, but my regex wont work, very frustrating.my $filename2 = "apple.htm"; my $filename2 =~ s/^[^.]*(\.[\w]+$)/$1/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Problems
by sauoq (Abbot) on Nov 07, 2002 at 23:57 UTC | |
|
Re: Regex Problems
by robartes (Priest) on Nov 08, 2002 at 00:05 UTC | |
|
Re: Regex Problems
by Ananda (Pilgrim) on Nov 08, 2002 at 04:19 UTC | |
|
Re: Regex Problems
by hackdaddy (Hermit) on Nov 08, 2002 at 02:50 UTC |