用pytho写一个使用re正则表达式提取相应字符串中特定子串
各位大佬求帮助
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:的内容
#笔试题目#