标签:http ar os sp java 数据 on div bs
final String REGX_IP = "((25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)";在过滤json数据中的ip,需要判断异常ip值,我的写法:
[^"]{2}\b((25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\b"测试用例:
", 10.111.77.111", // T
-bj-10.10.111.111-cloudcomputing- // F
"111.111.111.111" // F
"vc-10.11.75.111", // T
========分割线========
http://www.jb51.net/tools/zhengze.html
标签:http ar os sp java 数据 on div bs
原文地址:http://my.oschina.net/yygh/blog/346463