<?php $content = 'text text http://site.ru/bla/bla/index.html text text'; preg_replace('/http:.*?\.html/i', '<a href=\'$0\'></a>', $content); print_r($array);
You have javascript disabled. You will not be able to edit any code.