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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:51:45
Original
1193 people have browsed it

`正则表达式 - 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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template