`<imgsrc=”http://a.com/aa.jpg”
alt=”x11
“title=”x12”
/>
<a herf=”” rel=”nofollow” target=”_blank” title=’http://a.b.com”>’>http://a.b.com”>
ZZZZ</a>
`
HTML块(代码在一行,无空格),很多标签,很多双引号,如何获取<imgsrc>标签下 alt=的值,如X11,X21,x31. 用正则
Don’t try to parse HTML using regex. Find an HTML parser please.
正文完