vedi se così va.
codice:
preg_match("#(.*)parola#", $testo, $testoinuscita);
echo $testoinuscita[0];