preg_match_all("'<\s*a\s.*?href\s*=\s* # find <a href=
([\"\'])? # find single or double quote
(?(1) (.*?)\\1 | ([^\s\>]+)) # ifquote found, match up to next matching
# quote, otherwise match up to next space
'isx",$document,$links);
这是snoopy.class.php里面 在文档中取得所有连接的正则,有些地方也是看不懂,希望大虾给解释一下,谢谢。
解决方案 »
- 求解一个smarty,js和css的问题
- 标签
- (在线等)怎么建立一个表格的时候,就让这个表格隐藏呢?
- thinkphp中翻页时遇到的URL重写时的问题,多了一个斜杠
- 请问,apache的多域名怎么配置
- 豆瓣网用的是什么技术 访问速度这么快
- 图片如何分开显示呀?高手请进
- 从表单上传上来的图片,我想将它存到服务器的某个目录,并将连接存入mysql,以便在浏览器中能够根据数据库的内容动态的显示图片,并且还想
- 求救:php中怎么实现在线人数的统计
- 【强烈推荐:】100兆jsp/php/cgi+50兆mysql空间=100元/年!!!
- 复杂的html页面的编写
- 一个人做了N久!终于上线了,来啊,散分了!!!!
([\"\'])? # find single or double quote
(?(1) (.*?)\\1 | ([^\s\>]+)) # if quote found, match up to next matching
# quote, otherwise match up to next space
'isx",$document,$links);