|Perl: the Markov chain saw|
Regex and leading zeros in numbersby Anonymous Monk
|on Mar 24, 2004 at 15:57 UTC||Need Help??|
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!!!!
20040326 Edit by BazB: Changed title from 'Reg. Exp.'