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

求正责婚配字符串

WBOY
Release: 2016-06-13 12:57:55
Original
780 people have browsed it

求正责匹配字符串

<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>
Copy after login


我要得到:/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];
Copy after login

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