Java IP Address Validate isIPSect(String ip)

Here you can find the source of isIPSect(String ip)

Description

is IP Sect

License

Apache License

Declaration

public static boolean isIPSect(String ip) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.regex.Pattern;

public class Main {

    public static boolean isIPSect(String ip) {
        return Pattern.compile(
                "^((2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){2}((2[0-4]\\d|25[0-5]|[01]?\\d\\d?|\\*)\\.)(2[0-4]\\d|25[0-5]|[01]?\\d\\d?|\\*)$")
                .matcher(ip).find();//w  w  w  .  j a va  2  s.c om

    }
}

Related

  1. isIPAddress(String ipAddress)
  2. isIPAddress(String line)
  3. isIpAddress(String str)
  4. isIPAndPort(String text)
  5. isIpFormat(String ip)
  6. isIPString(String str)
  7. isIpv4(String ipv4)
  8. isIpV4Address(CharSequence address)
  9. isIPv4Address(final String input)