1
回答
正则表达式匹配的问题
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

内容

<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回/69阅
顶部