【问题标题】:How possible to delete div with subdivs using regex yahoo pipes?如何使用正则表达式雅虎管道删除带有细分的 div?
【发布时间】:2011-11-02 06:41:43
【问题描述】:

我有这样的结构:

<div class="formula_full">

    <div class="f_ltop"></div>
    <div class="f_rtop"></div>
       <div class="f_box"> 
          <img src="*****" alt="">
            <div class="f_box_info">5% Rogue</div>
    </div>
</div>

我需要在雅虎管道正则表达式中使用哪个表达式来删除所有带有细分的 div 类“formula_full”。 我尝试使用 &lt;div class="formula_full"[^&gt;]*&gt;(.*?)&lt;/div&gt; ,但它只删除了一部分。

【问题讨论】:

    标签: html pipe yahoo


    【解决方案1】:

    管道正则表达式不理解标签和子标签......因此,虽然下面的正则表达式可以很好地处理您上面提到的代码文本,但如果它下面有任何其他关闭 DIV 标记,这将失败

    正则表达式:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多