本帖最后由 apei 于 2020-12-1 14:20 编辑
基本就这样 ,先用正则匹配出需要的文本,然后插入进去就好!
[C++] 纯文本查看 复制代码 <span>(.*?)</span>
</a>
</h3>
<p class="result-game-item-desc">(.*?)</p>
<div class="result-game-item-info">
<p class="result-game-item-info-tag">
<span class="result-game-item-info-tag-title preBold">作者:</span>
<span>(.*?)</span>
</p>
<p class="result-game-item-info-tag">
<span class="result-game-item-info-tag-title preBold">类型:</span>
<span class="result-game-item-info-tag-title">(.*?)</span>
</p>
<p class="result-game-item-info-tag">
<span class="result-game-item-info-tag-title preBold">更新时间:</span>
<span class="result-game-item-info-tag-title">(.*?)</span>
</p>
<p class="result-game-item-info-tag">
<span class="result-game-item-info-tag-title preBold">最新章节:</span>
<a cpos="newchapter" href="(.*?)" class="result-game-item-info-tag-item" target="_blank">(.*?)</a> |