|
Slain wrote:
I need to validate to ensure that the user is not entering IP address
in Hexadecimal form. Is there some way to check for it?
The usual and the simplest way is to try converting and if it fails,
tell the user (and ask to re-enter).
The user would probably enter it in 0x form. Hence the only solution
which comes to my mind is to look for 'x' int the string and if so
declare it invalid. Any other ideas?
I am not sure I grasp your 'x' idea...
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
.
|