public function replaceTokens($regexp, $fn)
	{
		$this->inspector    = null;
		$this->template     = TemplateModifier::replaceTokens($this->template, $regexp, $fn);
		$this->isNormalized = false;
	}
public function replaceTokens($regexp, $fn)
	{
		$this->inspector    = null;
		$this->template     = TemplateModifier::replaceTokens($this->template, $regexp, $fn);
		$this->isNormalized = false;
	}
public function replaceTokens ( $ regexp , $ fn ) { $ this -> inspector = null ; $ this -> template = TemplateModifier :: replaceTokens ( $ this -> template , $ regexp , $ fn ) ; $ this -> isNormalized = false ; }
Replace parts of this template that match given regexp

@param  string   $regexp Regexp for matching parts that need replacement
@param  callback $fn     Callback used to get the replacement
@return void
Replace parts of this template that match given regexp