Re: matching file name without digits
- From: "Dr.Ruud" <rvtol+news@xxxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 19:43:44 +0200
Ted Zlatanov schreef:
my $key = basename $name;
$key =~ s/\d+//g;
I would probably make that
$key =~ s/[0-9]+/#/g;
or just
$key =~ s/[0-9]+/9/g;
to prevent collissions.
--
Affijn, Ruud
"Gewoon is een tijger."
.
- Follow-Ups:
- Re: matching file name without digits
- From: Ted Zlatanov
- Re: matching file name without digits
- References:
- newbie also
- From: NEAL ZIERKE
- newbie also
- Prev by Date: Re: Help: Variables problem
- Next by Date: Re: matching file name without digits
- Previous by thread: newbie also
- Next by thread: Re: matching file name without digits
- Index(es):
Relevant Pages
|