I try to specify exactly what is valid:
Then wouldn't you want /\A-?\d+\z/?
If it's there, $ will match a single newline at the end of your string, and you'd end up matching something bogus like "7\n".
--k.
In reply to Re: Re: Re: integer validation
by Kanji
in thread integer validation
by pabaris1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |