Potrebbe andare così:
Codice PHP:
$i strpos($prima_stringa$file);
$l strpos($seconda_stringa$file);
$in_mezzo substr($file$i+strlen($prima_stringa), $l);