MCPcopy Create free account
hub / github.com/SeanDragon/protools / isIP

Method isIP

common/src/main/java/pro/tools/data/text/ToolRegex.java:266–268  ·  view source on GitHub ↗

验证IP地址 @param input 待验证文本 @return true: 匹配 false: 不匹配

(CharSequence input)

Source from the content-addressed store, hash-verified

264 * @return {@code true}: 匹配<br>{@code false}: 不匹配
265 */
266 public static boolean isIP(CharSequence input) {
267 return isMatch(REGEX_IP, input);
268 }
269
270 /**
271 * 判断是否匹配正则

Callers

nothing calls this directly

Calls 1

isMatchMethod · 0.95

Tested by

no test coverage detected