in reply to Re: Re: integer validation
in thread integer validation
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.
|
|---|