VC ++程序从HTML文件中删除不需要的标签 [英] VC++ program to remove unwanted tags from a HTML file
本文介绍了VC ++程序从HTML文件中删除不需要的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在编写程序(VC ++),我需要从输入的HTML文件中删除不需要的html标签.
我想我可以使用正则表达式来匹配这些标签,然后删除.
我使用的是VC ++(2010).请为我提供一个示例程序,以便我可以满足自己的需求.
谢谢.
Hi,
I am writing program(VC++) where i need remove unwanted html tags from a input HTML file.
I think i can use regular expressions to match these tags and then delete.
I am using VC++(2010) to impliment. Please guide me with a sample program so that with which i can reach my need.
Thanks.
推荐答案
语录:
我认为我可以使用正则表达式进行匹配这些标签,然后删除.
I think i can use regular expressions to match these tags and then delete.
实际上,这是一个可行的解决方案.
您可以使用使用C ++进行HTML解析 [ ^ ].
Indeed it is a viable solution.
You might Google for HTML parsing with C++[^].
这篇关于VC ++程序从HTML文件中删除不需要的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文