public function replace($replacement, $subject, $seed = '')
	{
		if (!empty($seed))
		{
			$this->addSeed($seed);
		}

		return preg_replace($this->compile(), $replacement, $subject);
	}
public function replace($replacement, $subject, $seed = '')
	{
		if (!empty($seed))
		{
			$this->addSeed($seed);
		}

		return preg_replace($this->compile(), $replacement, $subject);
	}
public function replace ( $ replacement , $ subject , $ seed = '' ) { if ( ! empty ( $ seed ) ) { $ this -> addSeed ( $ seed ) ; } return preg_replace ( $ this -> compile ( ) , $ replacement , $ subject ) ; }
Performs a replacement by using numbered matches

@param string $replacement
@param string $subject
@param string $seed

@return mixed
Performs a replacement by using numbered matches