开发者

RegExKitLite matching HTML tags and extracting text

开发者 https://www.devze.com 2022-12-17 10:07 出处:网络
how uo use RegExKitLite matching HTML tags and extracting text ? ie: <li color=red> <span>1</span>

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

精彩评论

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

关注公众号