note 95824 deleted from function.ereg by salathe
| From: | salathe@php.net | Date: | Sun, 03 Apr 2011 12:45:40 +0000 |
| Subject: | note 95824 deleted from function.ereg by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178447@lists.php.net to get a copy of this message | ||
Note Submitter: eddie at edwardawebb dot com
----
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.