$str = 'img src="abcccccccccc" '; $str = preg_replace('/src=".*?"/', 'src="helloworld"', $str); echo $str;打赏感谢支持与鼓励~