<?php $str = 'http://www.google.com <img src="http://placehold.it/350x150" />'; $str = preg_replace('/^\b(https?):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $str); echo $str;
You have javascript disabled. You will not be able to edit any code.