Quote:
Originally Posted by Dr.CustUmz
hmmm, im no good with preg replaces, but shouldn't something like this work, on either global or parse templates.
this is not working
Code:
$find = preg_replace("/<head[^>]>/i", "TEST", $find);
|
You don't need to use regex here with preg_replace(), but what you need is to have the template code stored as a string, and then just use str_replace() on the string.