效果:
文本中的内容是HTML页面,用文件流写成HTML文件之前,想提取所有A标签<a href="http://aaa.com/?from=300300" target="_blank">
<a href="http://aaa.com/?from=300300" target="_blank">
<a href="http://aaa.com/?from=300300" target="_blank">
<a href="http://aaa.com/b/?from=300300" target="_blank">
提取并替换之后
<a href="http://aaa.com/b/?from=乱码" target="_blank">
<a href="http://aaa.com/b/?from=乱码" target="_blank">
<a href="http://aaa.com/b/?from=乱码" target="_blank">
<a href="http://aaa.com/b/?from=乱码" target="_blank">
慕码人8056858
桃花长相依