note 69880 added to function.ereg-replace

From: Date: Sun, 24 Sep 2006 23:29:54 +0000
Subject: note 69880 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-117545@lists.php.net to get a copy of this message
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); ---- Server IP: 83.138.144.80 Probable Submitter: 82.32.89.40 ---- Manual Page -- http://www.php.net/manual/en/function.ereg-replace.php Edit -- https://master.php.net/note/edit/69880 Del: integrated -- https://master.php.net/note/delete/69880/integrated Del: useless -- https://master.php.net/note/delete/69880/useless Del: bad code -- https://master.php.net/note/delete/69880/bad+code Del: spam -- https://master.php.net/note/delete/69880/spam Del: non-english -- https://master.php.net/note/delete/69880/non-english Del: in docs -- https://master.php.net/note/delete/69880/in+docs Del: other reasons-- https://master.php.net/note/delete/69880 Reject -- https://master.php.net/note/reject/69880 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117545) next »