public function pregReplace()
    {
        if ($this->getParameter('pattern') == null)
            return $this->getParameter('subject');
        return preg_replace($this->getParameter('pattern'), $this->getParameter('replace'), $this->getParameter('subject'));
    }