此文为本人记录性简文,纯属工作中正则表达的记录
获取tr标签的内容
<tr.*? class="tr".*?>([\s\S]*?)</tr>
获取td标签的内容
<td.*? class="colorRed">([\s\S]*?)</td>
获取a标签中href的链接
<a.+?href=\"(.+?)\".*>
此文为本人记录性简文,纯属工作中正则表达的记录
获取tr标签的内容
<tr.*? class="tr".*?>([\s\S]*?)</tr>
获取td标签的内容
<td.*? class="colorRed">([\s\S]*?)</td>
获取a标签中href的链接
<a.+?href=\"(.+?)\".*>
本文标题:易用的正则表达式
本文链接:https://www.haomeiwen.com/subject/epduittx.html
网友评论