IP address textbox in Android? -
i'm totally new android.
i put in textbox user can enter ip address ... how limit user enter numbers? ... , how validate?
is there ready-made-ip-address-textbox "out there" can use?
thanks!
mojo
for validation, regular-expressions.info has regex string use testing ip in valid (0-255) range:
\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
Comments
Post a Comment