Se ti aspetti che la stringa compare solo una volta puoi usare preg_match.
Esempio:
Codice PHP:
<?php
$stringa = 'stringa /it/ di prova';
$regex = "#(/it/|/en/|/fr/)#";
preg_match($regex, $stringa, $matches);
if(isset($matches[1]))
var_dump($matches[1]);
else
echo 'non trovato';
?>
altrimenti puoi usare preg_match_all
Codice PHP:
<?php
$stringa = '/fr/stringa /it/ di /en/ prova';
$regex = "#(/it/|/en/|/fr/)#";
preg_match_all($regex, $stringa, $matches);
if(isset($matches[1]))
var_dump($matches[1]);
else
echo 'non trovato';
?>