Originariamente inviato da nicola75ss
Codice PHP:
$stringa "questo è testo inutile questo è tutto 
il testo da cercare altro testo che non mi serve"
;
preg_match("#inutile (.*) altro#is",$stringa,$testo);
echo 
$testo[1]; 
Decisamente meglio questo, che è con le regexp