Re: a regex question ..
- From: Geoff Cox <geoff.cox@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 19:00:25 GMT
On Sat, 30 Apr 2005 20:10:59 +0200, Gunnar Hjalmarsson
<noreply@xxxxxxxxx> wrote:
>That's my interpretation as well. How about:
>
> (my $newname = $name) =~ s/(^|\D)(\d)(?=\D|$)/${1}0$2/g;
> rename $name, "new-$newname";
Gunnar,
wonder if you could just talk me through your code?! not sure what
parts of it mean ....
Geoff
.
- References:
- a regex question ..
- From: Geoff Cox
- Re: a regex question ..
- From: Fabian Pilkowski
- Re: a regex question ..
- From: Elvis Cehajic
- Re: a regex question ..
- From: Gunnar Hjalmarsson
- a regex question ..
- Prev by Date: Re: a regex question ..
- Next by Date: Re: a regex question ..
- Previous by thread: Re: a regex question ..
- Next by thread: Re: a regex question ..
- Index(es):
Relevant Pages
|
|