laziness, impatience, and hubris | |
PerlMonks |
Regular expressionby ashok (Sexton) |
on Dec 09, 2005 at 15:37 UTC ( [id://515566]=perlquestion: print w/replies, xml ) | Need Help?? |
ashok has asked for the wisdom of the Perl Monks concerning the following question:
In my application , Emp no creates in 7 digists like 5038062. Curretnly I am capturing with 5.* and able to. But I want to make it generic to capturen beging with what may be the no. I have tried with [0-9][0-9][0-9][0-9][0-9][0-9][0-9] and [0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9] options and failes. It looks the string is char. Can you then help me how to?
Edit: g0n - added code tags
Back to
Seekers of Perl Wisdom
|
|