find my error....

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

find my error....

Post by Illusionist »

Oops, after i posted, i noticed iw as int he wrong forum! Sorry!

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);
I'm new to reg exp so be easy with me!

FOUND the problem, wronge variable name: $repalce in the preg_replace
Post Reply