1
回答
正则表达式匹配的问题
注册华为云得mate10,2.9折抢先购!>>>   

内容

<a class="nav-section-head desktop" href="/channel/china.html">

<a class="nav-section-head desktop" href="/channel/world.html">
<a class="nav-section-head desktop" href="/channel/economy.html">
<a class="nav-section-head desktop" href="/channel/markets.html">
<a class="nav-section-head desktop" href="/channel/business.html">
<a class="nav-section-head desktop" href="/channel/innovation.html">
<a class="nav-section-head desktop" href="/channel/opinion.html">
<a class="nav-section-head desktop" href="/channel/management.html">
<a class="nav-section-head desktop" href="/channel/lifestyle.html">
<a class="nav-section-head desktop" href="/channel/stream.html">
<a class="nav-section-head desktop" href="/channel/english.html">



正则

<a class="nav-section-head desktop" href="(/channel/\w*.html)">

想排除

<a class="nav-section-head desktop" href="/channel/stream.html">
<a class="nav-section-head desktop" href="/channel/english.html">

这两个 正则咋写,叩谢大牛

<无标签>
举报
红薯苗
发帖于1年前 1回/79阅
顶部