$text = 'boo foo https://hello.АНТИcom/index.АНТИphp?here="lol" ab';$text = str_replace('http', '[link h:(http', $text);echo $text;?>
$text = 'boo foo https://hello.АНТИcom/index.АНТИphp?here="lol" ab'; if ( preg_match_all ("~(https?[^ ]+) ~siU", $text, $arr)) { print_r($arr[1]); } else print "error"; ?>