find my error....
Posted: Thu Feb 19, 2004 9:49 pm
Oops, after i posted, i noticed iw as int he wrong forum! Sorry!
im having more problems with my regular expressions...
I'm new to reg exp so be easy with me!
FOUND the problem, wronge variable name: $repalce in the preg_replace
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