正则表达式匹配的问题

红薯苗 发布于 2016/11/03 17:21
阅读 97
收藏 0

内容

<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">

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

加载中
0
当朝宰相
当朝宰相
你直接 grep -vE "strean|engilish" fie  不就可以了吗
返回顶部
顶部