|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Checking for single digitby vladb (Vicar) |
| on May 06, 2003 at 01:14 UTC ( #255780=note: print w/ replies, xml ) | Need Help?? |
|
In your match try to use the special regexp anchors ^ and $:
From the Perl regular expression tutorial (perlre), the "^" and "$" are defined as: Unless they are used, Perl will look for a match anywhere within your $input string! ;-) Update: threw in some perldoc definitions for your viewing pleasure :) _____________________
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||