in reply to Checking for single digit
You need to use /\A\d\z/, which forces beginning of string and end of string, not $ which means end of string, or just before a newline at the end of string.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Checking for single digit
by TVSET (Chaplain) on May 06, 2003 at 02:08 UTC | |
by merlyn (Sage) on May 06, 2003 at 02:28 UTC | |
by Abigail-II (Bishop) on May 06, 2003 at 07:46 UTC | |
by Enlil (Parson) on May 06, 2003 at 04:28 UTC | |
by pfaut (Priest) on May 06, 2003 at 04:52 UTC | |
by crouchingpenguin (Priest) on May 06, 2003 at 03:45 UTC | |
by The Mad Hatter (Priest) on May 06, 2003 at 02:18 UTC |