php preg_match 正则

[复制链接]
查看11 | 回复3 | 2012-3-12 23:19:38 | 显示全部楼层 |阅读模式
preg_match("/(.+)/imsU",$html,$arr);$yourwant = $arr[0];$html是网页字符串$arr是匹配后的数组...
回复

使用道具 举报

千问 | 2012-3-12 23:19:38 | 显示全部楼层
以下程序调试通过,你可以借鉴:****
[tr][td]xxx[td]yyy
****';if (preg_match('|****
[tr][td]xxx[td]yyy
****';if (preg_match('|[table](.*)|imsU',$html,$reg)) {echo $reg...
回复

使用道具 举报

千问 | 2012-3-12 23:19:38 | 显示全部楼层
我擦,非要正则么,jquery一下就取出来了...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行