这是内容
<form action="/User/Login.shtml" method="post">
<input type="text" value="" maxlength="50" emptyok="false" name="dyuserwo520name" class="input-style"/>
<input type="password" maxlength="32" emptyok="false" name="password" class="input-style"/>
<input type="hidden" name="refer" value="%2findex.shtml"/>
<input type="hidden" name="dypostcode520jdk" value=""/>
<input type="submit" value="登录" class="submit" />
<input type="checkbox" name="expires" value="604800" checked="checked"/>
</form>
匹配name后面双引号之间的
要求不准出现多余的东西
我一直都差一点,就是差一点所以不行
我的匹配结果
http://vc.q18idc.pw我多最后那一点。。。
我是这样匹配的
preg_match_all('
@name="(.*)"[\s](.*)/>@',$aa,$u_array);
print_r($u_array['1']);