preg_replace('#http(s?).*\.(jpg|png|bmp|gif)#', '', 'selam deneme resim http://dene.com/elma.jpg budur.');
işini göreceğini düşünüyorum