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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -