Re: matching file name without digits
- From: Ted Zlatanov <tzz@xxxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 13:49:49 -0500
On Fri, 29 Aug 2008 19:43:44 +0200 "Dr.Ruud" <rvtol+news@xxxxxxxxxxxx> wrote:
R> Ted Zlatanov schreef:
my $key = basename $name;
$key =~ s/\d+//g;
R> I would probably make that
R> $key =~ s/[0-9]+/#/g;
R> or just
R> $key =~ s/[0-9]+/9/g;
R> to prevent collissions.
Yeah, good point :)
Ted
.
- References:
- newbie also
- From: NEAL ZIERKE
- Re: matching file name without digits
- From: Dr.Ruud
- newbie also
- Prev by Date: Re: matching file name without digits
- Next by Date: Re: subprocesses lifecycle
- Previous by thread: Re: matching file name without digits
- Next by thread: Help: Variables problem
- Index(es):