note 95824 added to function.ereg

From: Date: Sat, 23 Jan 2010 19:31:32 +0000
Subject: note 95824 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-165241@lists.php.net to get a copy of this message
Have a custom solution or 3rd party app thatv uses ereg? Update it to preg_match with simple regular expression (regexp) FIND ereg\((['"])(.*)(['"])([,\)]) REPLACE WITH preg_match(\1/\2/\3\4 Depending on your editor the \1 \2 etc may be %1 or $1 - they represent the captured groups above marked by ()s. ---- Server IP: 69.147.83.197 Probable Submitter: 67.189.232.126 ---- Manual Page -- http://www.php.net/manual/en/function.ereg.php Edit -- https://master.php.net/note/edit/95824 Del: integrated -- https://master.php.net/note/delete/95824/integrated Del: useless -- https://master.php.net/note/delete/95824/useless Del: bad code -- https://master.php.net/note/delete/95824/bad+code Del: spam -- https://master.php.net/note/delete/95824/spam Del: non-english -- https://master.php.net/note/delete/95824/non-english Del: in docs -- https://master.php.net/note/delete/95824/in+docs Del: other reasons-- https://master.php.net/note/delete/95824 Reject -- https://master.php.net/note/reject/95824 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165241) next »