i want remove all img tag in a string if don`t like my form but i can't it
example (i want to stay in my string) :
<img src="http://localhost/uploads/user1/test3.jpg" title="test" class="img-responsive img-maxheight">
<img src="http://localhost/uploads/user2/test1.jpg" alt="test" class="img-responsive img-maxheight">
<img src="http://localhost/uploads/user3/test2.jpg" class="img-responsive img-maxheight">
and my regex code in php is :
$pattern ="/<img src=\"http:\/\/localhost\/(uploads|thumbs)\/$user\/(.*?)\" (alt|title|)=\"(.*?)\" class=\"img-responsive img-maxheight\">/i";
$replacement = ' ';
$content = preg_replace($pattern, $replacement, $content);