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

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

WBOY
WBOYOriginal
2016-06-13 12:34:36878browse

求教 获取如下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 />

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

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