im having more problems with my regular expressions...
Code: Select all
$search = "#<a href="(http://)?(.*?[^ "\n\r\t<]*?)" target="_self">(.*?)</a>#is";
$replace = "[link=\\1\\2]\\3[/link]";
$text = preg_replace($search, $repalce, $text);FOUND the problem, wronge variable name: $repalce in the preg_replace