#一道正则表达式提取题
各位大佬求帮助
string1=" 180 TCP 192.168.0.131:47570 -> 117.18.237.29:80 [proto: 7/HTTP][cat: Web/5][1 pkts/74 bytes -> 0 pkts/0 bytes][Goodput ratio: 0/0][< 1 sec][Plen Bins: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
使用re.match提取180,tcp,源ip和端口,目的ip和端口,proto:的内容
各位大佬求帮助
string1=" 180 TCP 192.168.0.131:47570 -> 117.18.237.29:80 [proto: 7/HTTP][cat: Web/5][1 pkts/74 bytes -> 0 pkts/0 bytes][Goodput ratio: 0/0][< 1 sec][Plen Bins: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
使用re.match提取180,tcp,源ip和端口,目的ip和端口,proto:的内容
全部评论
相关推荐
求offer的社畜很想吃卤蛋:篮子对快手是不满意吗
点赞 评论 收藏
分享