((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)
Pattern p=Pattern.compile("((2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){3}(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)");Matcher m=p.matcher(strint);if(m.find()){ //headers.put("ip",m.group());}
时间: 2024-10-10 12:29:06