截取字段数据
如字段name="Microsoft Windows [版本 5.2.3790] (C) 版权所有 1985-2003 Microsoft Corp. E:\study\TestPing>ping www.baidu.com Pinging www.a.shifen.com [119.75.218.45] with 32 bytes of data: Reply from 119.75.218.45: bytes=32 time=47ms TTL=54 Reply from 119.75.218.45: bytes=32 time=47ms TTL=54 Reply from 119.75.218.45: bytes=32 time=51ms TTL=54 Reply from 119.75.218.45: bytes=32 time=49ms TTL=54 Ping statistics for 119.75.218.45: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: 最小 = 47ms, 最大 = 51ms, Average = 48ms ";
我想把红色字段前的数据清空;或者“Reply from ”的换行。。
应该怎么做呢?