正则表达式 叼炸天之获取匹配字符
Pattern re = Pattern.compile("(\d+) packets transmitted, (\d+) received, (\d+)% packet loss, time (\d+)ms" +“rtt min/avg/max/mdev = (\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+) ms”);Matcher m = re.ma...
转载
2018-11-21 14:47:22 ·
274 阅读 ·
0 评论