I want to replace 'keyword' in <img ..keyword../> using PHP regular expressions.
$content = '<img alt="hello" src="http://frbird.qiniudn.com/topic/150609/5576a8837fd32e3b4ece5f6b-hd.jpg">';
$content = preg_replace('/(<img\s(?!>)*?)(hello)((?!>)*>)/U', '$1%&&&&&%$3', $content);
I can't replace 'hello'. Please tell me what is wrong.