- 帖子
- 1
- 积分
- 12
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2017-5-12
|
[文本处理] 能否用findstr根据关键词提取连续几行内容?
请问各位大侠,用findstr可以方便的根据关键词提取某一行内容。但是我想根据关键词,提取联系的几行内容,可以实现吗?
要求是这样的,需要从很多保存在本地的html中(1.html,2.html...)提取"Members of the public"及其后面的两行。
*********************
...
<tr>
<th>Type</th>
<th class='num'>Count</th>
<th class='num percent'>As %</th>
</tr>
<tr>
<td>Members of the public</td>
<td class='num'>2</td>
<td class='num'>100%</td>
</tr>
</table>
...
******************
可以实现吗?谢谢! |
|