note 69880 deleted from function.ereg-replace by bjori

From: Date: Mon, 25 Sep 2006 08:03:56 +0000
Subject: note 69880 deleted from function.ereg-replace by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117558@lists.php.net to get a copy of this message
Note Submitter: Jack Alcock ---- If you're parsing TeX expressions, this ereg_replace will convert fractions such as 1/2 into the correct notation (\frac{1}{2}): $texMarkup = ereg_replace('([0-9]+)/([0-9]+)', "\frac{ \\1 }{ \\2 }", $texMarkup);

« previous php.notes (#117558) next »