假设我有一个包含以下数据的文件:
<td class="w"><a href="show.cgi?id=120012" title="[Title] @Blue: Session_TIMEOUT after 60033 ms">[Title] @Blue: Session_TIMEOUT after 60033 ms</a></td>'
<td class="w"><a href="show.cgi?id=120012" title="[Title] @Blue: Session_TIMEOUT after 60500 ms">[Title] @Blue: Session_TIMEOUT after 60033 ms</a></td>'
在上面的字符串中,我如何在 HTML 标记下的两行中检索 title="[Title] @Blue: Session_TIMEOUT after 60033 ms" 之后的字符串,并在下一行写入检索的字符串。
我想要这样的输出:
<td class="w"><a href="show.cgi?id=120012" title="[Title] @Blue: Session_TIMEOUT after 60033 ms">[Title] @Blue: Session_TIMEOUT after 60033 ms</a></td>'
@Blue: Session_TIMEOUT after 60033 ms
<td class="w"><a href="show.cgi?id=120012" title="[Title] @Blue: Session_TIMEOUT after 60500 ms">[Title] @Blue: Session_TIMEOUT after 60033 ms</a></td>'
@Blue: Session_TIMEOUT after 60500 ms
请帮我做同样的事情....在此先感谢