Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have two files and I need to mach this two values:
20055 with 020055
I am trying to use reg.exp. like
if(A variable with 020055) $nums=~s/(\d)(\d)(\d)(\d)(\d)(\d)/(\d)(\d)(\d)(\d)(\d)/g;
I need to extract the first zero from the second number to mach with the first, I am stuck, little help!!!!
Thanks...
20055 with 020055
I am trying to use reg.exp. like
if(A variable with 020055) $nums=~s/(\d)(\d)(\d)(\d)(\d)(\d)/(\d)(\d)(\d)(\d)(\d)/g;
I need to extract the first zero from the second number to mach with the first, I am stuck, little help!!!!
Thanks...
20040326 Edit by BazB: Changed title from 'Reg. Exp.'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex and leading zeros in numbers
by Roy Johnson (Monsignor) on Mar 24, 2004 at 16:23 UTC | |
Re: Regex and leading zeros in numbers
by Happy-the-monk (Canon) on Mar 24, 2004 at 16:25 UTC | |
Re: Regex and leading zeros in numbers
by flyingmoose (Priest) on Mar 24, 2004 at 17:42 UTC | |
Re: Regex and leading zeros in numbers
by QM (Parson) on Mar 24, 2004 at 18:42 UTC | |
Re: Regex and leading zeros in numbers
by swkronenfeld (Hermit) on Mar 24, 2004 at 16:25 UTC |
Back to
Seekers of Perl Wisdom