【www.gdgbn.com--php常用代码】
//方法一
代码如下 $str = "http://www.111cn.net" target="_blank" name="doc3_p">";preg_match_all ("|^ print_r($out);
//方法二
var_dump($matches[1]);
//方法三
//方法四
print_r($aMatch[1]);
//方法五
print_r($match);
preg_match_all("/src=("|"|s)*([^"">s]+)/i",$str,$match);
print_r($match);
/*
上面这正则得到url的地址都是用了php正则表达试来实现的,只是方法有一点不同了。