function getReplace($p) { if ($this->isReference()) { $ref = $this->getRef($p); return $ref->getReplace($p); } return $this->regexp->getReplace(); }