Skip to content

Instantly share code, notes, and snippets.

@JayKickliter
Created April 21, 2014 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayKickliter/11129267 to your computer and use it in GitHub Desktop.
Save JayKickliter/11129267 to your computer and use it in GitHub Desktop.
Android: Validate IP Address
String ipAddressPattern = Patterns.IP_ADDRESS.toString();
if (theAddress.matches( ipAddressPattern )) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment