正则表达式HTML [英] Regex HTML

查看:98
本文介绍了正则表达式HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

我想从主页上阅读一些东西.

I want to read something from a homepage.

所以我认为我想阅读html代码.

So I think that I want to read the html code.

这是我的html:

< div class ="cd-timeline-content动画eff-fadeInLeft delay-100ms">"
   < span class ="news_title"" a href ="

 <div class="cd-timeline-content animated eff-fadeInLeft delay-100ms">
    <span class="news_title"><a href="

所以我想阅读类"news_title",类"text news_tease".和类"cd-date news_date".

So I want to read the class "news_title", class "text news_tease" and class "cd-date news_date".

所以我的结果应该是:

news_title:Nachrichten

news_title: Nachrichten

文本新闻_娱乐:莱兹滕·沃辛·德·贾勒斯·劳芬·奥夫·霍图图恩. Draußenwird eskälter和drinnen beginntfüruns dieheiße"相位Jahres. Passent vor ...

text news_tease: Die letzten Wochen des Jahres laufen auf Hochtouren. Draußen wird es kälter und drinnen beginnt für uns die "heiße" Phase des Jahres. Passend vor ...

cd-date新闻日期:2016年11月30日

cd-date news_date: Nov 30 2016

我该如何使用正则表达式解决这个问题?

How can I solve this with regex?

谢谢.

致谢

推荐答案

也许告诉您阅读方式会更容易.我想这不是用你的眼睛,铅笔和纸来做的.

Maybe it is easier that you tell how you read it. I assume it is not with your eyes, a pencil and a paper. 

您可以说我使用VB.然后我和其他人提出的问题是:是............以及如何?

You can say I use VB. Then my question from me and others will be, "Yes.....................and how?


这篇关于正则表达式HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆