Java Regex

  • + 0 comments
    class MyRegex {
        private String patternFor256 = "([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])";
        public String pattern = String.format("%1$s.%1$s.%1$s.%1$s", patternFor256);
    }