php 正则怎样匹配img标签的src内容
例如: $str = '<img width="100" src="1.gif" height="100">'; preg_match_all('/<img.*?src="(.*?)".*?>/is',$str,$array); print_r($array);
例如: $str = '<img width="100" src="1.gif" height="100">'; preg_match_all('/<img.*?src="(.*?)".*?>/is',$str,$array); print_r($array);