more useful options | |
PerlMonks |
Regex and leading zeros in numbersby Anonymous Monk |
on Mar 24, 2004 at 15:57 UTC ( [id://339440]=perlquestion: print w/replies, xml ) | 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!!!! Thanks... 20040326 Edit by BazB: Changed title from 'Reg. Exp.'
Back to
Seekers of Perl Wisdom
|
|