这是内容
<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']);
ss.zip
你不是匹配好了吗,还要匹配什么
哈哈 果然大易语言是最简单的
正则都看的出来
.版本 2
.支持库 RegEx
.支持库 spec
A.创建 (“name=” + #引号 + “(.{1,15})” + #引号 + “ ”, )
B = A.搜索全部 (#常量2)
.计次循环首 (取数组成员数 (B), c)
调试输出 (B [c].取子匹配文本 (#常量2, 1, ))
.计次循环尾 ()
开始运行被调试程序
* “dyuserwo520name”
* “password”
* “refer”
* “expires”
被调试易程序运行完毕
preg_match_all('@name="([^"]*)"@',$aa,$u_array);
print_r($u_array['1']);
1: preg_match_all('@name="(.*?)"@',$aa,$u_array);
2: preg_match_all('@name="(.*)"@U',$aa,$u_array);
此处的?代表 非贪婪模式 ,
详情百度 正则 ? 非贪婪模式