找回密码
 加入
搜索
查看: 1910|回复: 2

[效率算法] [已解决]请教个正则表达式谢谢

[复制链接]
发表于 2016-4-22 15:39:03 | 显示全部楼层 |阅读模式
本帖最后由 h012031 于 2016-4-22 17:15 编辑

<form method="post" name="frmGetSFZ" action="" > <input titie="输入邮编" class="form-text" name="id" placeholder="请输入身份证号码" value=""> <input type="submit" value="查询" class="form-btn"> </form>
<!-- JiaThis Button BEGIN --> <div class="jiathis_style clear mt10"> <span class="jiathis_txt">分享到:</span> <a class="jiathis_button_qzone">QQ空间</a> <a class="jiathis_button_tsina">新浪微博</a> <a class="jiathis_button_cqq">QQ好友</a> </div> <script type="text/javascript" > var jiathis_config={ siteNum:0, summary:"", boldNum:4, shortUrl:false, hideMore:true } </script> <script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<ul class="list">
<li>身份证号大全</li>
<li> 蔚嘉昌 <span class="sfzid">513222198804031039</span></br><span class="sfzid">男</span>28岁 <span><a href=city.php?id=513222>四川省 阿坝藏族羌族自治州 理县</a></span></li>
<li> 倪翻博 <span class="sfzid">320412199410256379</span></br><span class="sfzid">男</span>22岁 <span><a href=city.php?id=320412>江苏省 常州市 </a></span></li>
<li> 潘灿婷 <span class="sfzid">510903198701200668</span></br><span class="sfzid">女</span>29岁 <span><a href=city.php?id=510903>四川省 遂宁市 </a></span></li>
<li> 印圆 <span class="sfzid">540102198404107542</span></br><span class="sfzid">女</span>32岁 <span><a href=city.php?id=540102>西藏自治区 拉萨市 城关区</a></span></li>
<!--<p class="page"> 第1页/<a href="/">下一页</a> </p>-->
</ul>
</div>

<div class="top_line"> <a href="/city.php?id=110000" target="_blank">北京</a><a href="/city.php?id=310000" target="_blank">上海</a><a href="/city.php?id=440100" target="_blank">广州</a><a href="/city.php?id=440300" target="_blank">深圳</a><a href="/city.php?id=120000" target="_blank">天津</a></div>
<footer class="m_footer">


想取里面的 名字,身份证号码,地址。只会单独的 (?i)<li> (.*?) <span class="sfzid">(?i)    (?i)<span class="sfzid">(.*?)</span></br><span class="sfzid">(?i)
发表于 2016-4-22 16:00:44 | 显示全部楼层
<li> (.*?) <.*?>(\d{18})<.*?id=\d*>(.*?)</a>
 楼主| 发表于 2016-4-22 17:14:48 | 显示全部楼层
回复 2# zldfsz


    谢谢。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-3 20:26 , Processed in 0.075497 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表