voila j'aio trouver une autre solution :)
je pose mon code si ca peux aider quelqu'un :
mon utilisation etait pour un dokuwiki pour utilisé word pour crée des page par le commun des mortel
si besoin de renseignement n'hésitez pas mail/message/réponse
c'est pas top mais ca fonctionne et ca utilise moins de ressource qu'un regex
<?php
$subject = stripslashes($_POST['text1']);
$tab = explode('<img',$subject);
$nofinish = true;
$rac = $tab[0];
$x=1;
while($nofinish){
$tab2 = explode('>',$tab[$x],2);
$tab3=explode('src="',$tab2[0]);
$tab4 = explode('"',$tab3[1],2);
$tab5 = explode('/',$tab4[0]);
$lien = 'http://monsite/tmp/dokuwiki-2009-02-14/data/media/'.$tab5[sizeof($tab5)-1];
$rac = $rac.'<img'.$tab3[0].'src="'.$lien.'"'.$tab4[1].">".$tab2[1];
$x =$x+1;
$tab2 = explode('>',$tab[$x],2);
if(sizeof($tab2)==1){
$nofinish = false;
}
//echo $x.'!!<br />';
if($x > 10){
$nofinish = false;
}
}
?>
<html>
<head>
</head>
<body>
<FORM Method="POST" Action="">
<textarea style="width: 100%; height: 250px;" name="text1"></textarea>
<input type="submit" value="transformation" name="transformation"/>
</form>
<form>
<textarea style="width: 100%; height: 250px;" readonly="readonly"><?php echo $rac; ?></textarea>
</form>
</body>
</html>