Perl: the Markov chain saw | |
PerlMonks |
specific numbers of digitsby emichswimr (Initiate) |
on Mar 19, 2003 at 04:27 UTC ( [id://244237]=perlquestion: print w/replies, xml ) | Need Help?? |
emichswimr has asked for the wisdom of the Perl Monks concerning the following question:
I want to specify a certain number of digits to match.
ex. a zip code has 5 digits, 48197
$zip =~ /\d{5}/
while this will make sure that there is 5 digits it will also accept 6 digits. Suggestions?
Back to
Seekers of Perl Wisdom
|
|