Home > Backend Development > PHP Tutorial > 求教 获取如下href的正则要如何写

求教 获取如下href的正则要如何写

WBOY
Release: 2016-06-13 12:34:36
Original
917 people have browsed it

求教 获取如下href的正则要怎么写

<br />
test.html<br />
<!DOCTYPE html><br />
<html><br />
	<head>test</head><br />
	<body><br />
                    <a id="a5" href="111">wawa</a><br />
			<a id="a6" href="222">hehe</a><br />
			<a id="a7" href="333">haha</a><br />
			<a id="a8" href="444">uuuu</a><br />
              ......<br />
		<b><br />
			<a id="a1" href="111">wawa</a><br />
			<a id="a2" href="222">hehe</a><br />
			<a id="a3" href="333">haha</a><br />
			<a id="a4" href="444">uuuu</a><br />
		</b>	<br />
               ........<br />
	</body><br />
</html><br />
Copy after login

想要用正则获取标签内的每一个的href
请问要怎么写?

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