日期:2014-05-17  浏览次数:20639 次

求一段图片提取的正则
字符串:<br tangram-key="module-split" style="display: none;"><br style="display: none;"><br style="display: none;"><p><img src="http://img02.taobaocdn.com/imgextra/i2/733163714/T2gStjXhhNXXXXXXXX_!!733163714.jpg"><img src="http://img01.taobaocdn.com/imgextra/i1/733163714/T2ISpiXg4NXXXXXXXX_!!733163714.jpg"><img src="http://img03.taobaocdn.com/imgextra/i3/733163714/T2LVX3XdVcXXXXXXXX_!!733163714.jpg"><img src="http://img01.taobaocdn.com/imgextra/i1/733163714/T2.6xMXXNcXXXXXXXX_!!733163714.jpg"><img src="http://img01.taobaocdn.com/imgextra/i1/733163714/T25.tiXiBNXXXXXXXX_!!733163714.jpg"><img src="http://img03.taobaocdn.com/imgextra/i3/733163714/T2DF0NXlVbXXXXXXXX_!!733163714.jpg"><img src="http://img04.taobaocdn.com/imgextra/i4/733163714/T2gqXNXetcXXXXXXXX_!!733163714.jpg"><img src="http://img01.taobaocdn.com/imgextra/i1/733163714/T2V00NXcXdXXXXXXXX_!!733163714.jpg"><img src="http://img04.taobaocdn.com/imgextra/i4/733163714/T2jglOXoBcXXXXXXXX_!!733163714.jpg"><img src="http://img04.taobaocdn.com/imgextra/i4/733163714/T2TCRiXhhNXXXXXXXX_!!733163714.jpg"><img src="http://img02.taobaocdn.com/imgextra/i2/733163714/T2SydKXcNcXXXXXXXX_!!733163714.jpg"><img src="http://img04.taobaocdn.com/imgextra/i4/733163714/T2f0VOXg0dXXXXXXXX_!!733163714.jpg"><img src="http://img01.taobaocdn.com/imgextra/i1/733163714/T2t0RkXlNNXXXXXXXX_!!733163714.jpg"></p><p>&nbsp;</p>











能将里面的 所有图片地址全部提取出来,然后将图片地址通过php中的base64_encode函数转码后,再放回原处

------解决方案--------------------
回调函数 如果是类的方法的话,需要用数组形式传递