这是示例输出。
"PING 192.168.1.3 (192.168.1.3) 8000(8028) bytes of data.\nFrom 192.168.1.1 icmp_seq=1 Frag needed and DF set (mtu = 1500)\nFrom 1.1.1.1 icmp_seq=2 Frag needed and DF set (mtu = 1500)\n--- 192.168.1.3 ping statistics ---\n1 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1001ms"
从上面的输出中,我需要检索
"Frag needed and DF set (mtu = 1500)
0 received"
我们可以使用正则表达式来检索以上内容吗?