Okay, I did a search already and found a post by the good Dr.
Basically I have a block of text, with some [ php][ /php] tags in it which I want "highlighted".
is what it is, and I seem to be getting an error unexpected '$' - I thought maybe something wasn't escaped properly, but I've hardly used preg_replace so I'm a bit clueless as to what I'm looking forCode:$body = preg_replace('#\[ php](.+?)\[/ php]#eis', 'my_highlight_string(\\'$1\\')', $body);
Thanks!![]()





//




Just a reminder of how much I hate regex 
Bookmarks