有一段內(nèi)容是這樣的<section>dfdfdfdfdfdfdfdfdfdfdfdf</section><section>dfdfddfdfdfdf<section>ddfddfdfddfdfdf</section></section>使用<section>.*?</section> 匹配的時候會把最后一個丟掉。想問下如何寫這段正則表式。最后想要匹配的結(jié)果為<section>dfdfdfdfdfdfdfdfdfdfdfdf</section><section>dfdfddfdfdfdf<section>ddfddfdfddfdfdf</section></section>兩個匹配
正則表達(dá)式html標(biāo)簽中嵌套匹配如何寫
胡子哥哥
2019-02-15 15:08:29