I am having a little trouble converting the below regular expressions to the updated preg_replace function.
$string = ereg_replace("(a:http://)([a-zA-Z 0-9 \#\&\;\@\:\/\.\_\-]*)\|([a-zA-ZÄÖÜäöü 0-9 \#\&\;\@\:\/\.\_\-]*)","<a href=\"http://\\2\">\\3</a>",$string);
$string = ereg_replace("(a:http://)([a-zA-Z 0-9 \#\&\;\@\:\/\.\_\-]*)","<a href=\"http://\\2\">\\2</a>",$string);
Any help would be greatly appreciated.