Fixed bug #9994: ereg* is deprecated in PHP 5.3 alpha3
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_syntaxhl.php
index d54182a..be556f9 100644 (file)
@@ -380,7 +380,7 @@ class t3lib_syntaxhl {
                $token = md5(microtime());
 
                        // Markup all tag names with token.
-               $markUpStr = ereg_replace('<([[:alnum:]_]+)[^>]*>',$token.'\1'.$token,$str);
+               $markUpStr = preg_replace('/<([[:alnum:]_]+)[^>]*>/',$token.'\1'.$token,$str);
 
                        // Splitting by token:
                $parts = explode($token,$markUpStr);