text , najdi url a udelej link
Kategorie: linux

function text_do_url($string)
{
$string = str_replace('www.','http://www.', $string);

$string = preg_replace(
"~[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]~",
"trstrst\\0",
$string);


$string =str_replace('trstrsthttp://', '', $string);

return $string;
}


4.12.2019 22:14:01