I had this code but now I need to change it to newer preg_replace function
Can someone help me to do it please?
Here is the code:
$newString = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href=\"\\0\" target=\"_blank\">\\0</a>", $originalString);
Thanks in advance.