J'ai crée un fonction qui me permettrais de mettre en exposant les caractères après un ^ :
if(preg_match_all("/[^[[:blanck:]]|^\^]+\^[[:blanck:]]/",$math,$match_math))
{
foreach ($match_math as $v1_math) {
foreach ($v1_math as $c_math=>$v2_math) {
$sup = strstr($v2_math, '^');
$sup = str_replace('^', '', $sup);
$replacement_math = "<SUP>".$sup."</SUP>";
$math = str_replace($v2_math, $replacement_math, $math);
}
}
}
et seulement bah... ça ne marche pas du tout
