开发者

RegExKitLite matching HTML tags and extracting text

how uo use RegExKitLite matching HTML tags and extracting text ? ie:

<li color=red>
<span>1</span>
<span>2</span>
</li&g开发者_如何学运维t;

how to get content between <li> </li> ?


It's generally considered bad form to use regexp to parse HTML - have you considered using a XML/HTML parsing library? See here: RegEx match open tags except XHTML self-contained tags

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜