I'd like to create a regular expression that will replace #php.XVARIABLE# with $GLOBALS["XVARIABLE"]
I've tried this, but it doesn't work: $text = preg_replace("/#php.(.+)#/i", $GLOBALS[$1], $text);