preg_replace troubles
Posted: Tue Oct 20, 2009 5:32 pm
Hey, I'm trying to create a syntax highlighter plugin using GeSHi.
My only problem is this:
In particular:
The problem is it's passing literally dollar sign 1 and 2 (respectively) to the function, not the replacement.
I would greatly appreciate any help regarding this matter.
My only problem is this:
Code: Select all
preg_replace('#\[code=(.*?)\](.*?)\[/code\]#i', "<div class='codeblock'>" . geshify("$1", "$2") . "</div>", $message); Code: Select all
geshify("$1", "$2")I would greatly appreciate any help regarding this matter.