Home  >  Article  >  Backend Development  >  求正责婚配字符串

求正责婚配字符串

WBOY
WBOYOriginal
2016-06-13 12:57:55719browse

求正责匹配字符串

<br />
<div class="tabs"><br />
			<ul><br />
				<li  class="current" ><span>剧集列表</span></li><br />
										<li  onclick="nova_update('eplist', '/show_eplist/showid_z1b5b8110561411e1a19e_type_list.html')"><span>分集剧情</span></li><br />
						</ul><br />
		</div>


我要得到:/show_eplist/showid_z1b5b8110561411e1a19e_type_list.html
请问怎么匹配一下。
------解决方案--------------------
$t = <<<html<br />
<div class="tabs"> <ul> <li class="current" ><span>剧集列表</span></li> <li onclick="nova_update('eplist', '/show_eplist/showid_z1b5b8110561411e1a19e_type_list.html')"><span>分集剧情</span></li> </ul> </div><br />
html;<br />
preg_match("# '(.*?)'\)#s",$t,$m);<br />
echo $m[1];

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