Hi all,
Please i want to change ereg_replace by preg_replace, ereg_replace is deprecated.
below the code :

$Correction = $Email;
$Correction = trim(ereg_replace ('(%20)',  ' ', $Correction));
$Correction = trim(ereg_replace ('<br>' ,  '' , $Correction));
$Correction = trim(eregi_replace('(%3c)',  '.', $Correction));
$Correction = trim(eregi_replace('}'   ,  'e', $Correction));
$Correction = trim(ereg_replace ("[](){}<> \t=$£µ§¤#^'`¨~²[]\"<>*", '' , $Correction));								
   if (!strstr($Correction, '@') && strstr($Correction, 'à')) { $Correction = str_replace('à', '@', $Correction); }
  $Correction = strtr($Correction, 'ÄÂÀâäàãéèêëËÉÈÙ€îïìôõöÖÔÒùûüçǍ‡*/:', 'aaaaaaaeeeeeeeeeeiiioooooouuucccc-..');	// Attention 'Ù' devient 'e' !
  $Correction = ereg_replace('[\\|/%\'°";?,‚!]', '.', $Correction);
  $Correction = ereg_replace('( |\. | \.|\.\.|\.-|-\.)', '.', $Correction);
  $Correction = ereg_replace('(--|-\.-|-_|_-)', '-', $Correction);

et ici :

else
	{
	$Tmp_Correction = ereg_replace($Erreur['Correction'], $Erreur['Remplacement'], $Correction);

if ($Correction != $Tmp_Correction)
{
	$Correction = $Tmp_Correction;

}
else
{
$Correction = ereg_replace($Erreur['Correction'],   $Erreur['Remplacement'], $Correction);
continue;

}

 }

    most of that could be done with sting_replace which would be faster, for the latter can you provide an example of what you are gong from -> to

      Write a Reply...