Home  >  Article  >  Backend Development  >  正则表达式 - PHP中关于HTML正则

正则表达式 - PHP中关于HTML正则

WBOY
WBOYOriginal
2016-06-06 20:51:451137browse

`正则表达式 - PHP中关于HTML正则 alt="x11
"title="x12"
/>

ZZZZ

`

HTML块(代码在一行,无空格),很多标签,很多双引号,如何获取正则表达式 - PHP中关于HTML正则标签下 alt=的值,如X11,X21,x31. 用正则

回复内容:

`正则表达式 - PHP中关于HTML正则 alt="x11
"title="x12"
/>

ZZZZ

`

HTML块(代码在一行,无空格),很多标签,很多双引号,如何获取正则表达式 - PHP中关于HTML正则标签下 alt=的值,如X11,X21,x31. 用正则

Don't try to parse HTML using regex. Find an HTML parser please.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn