note 14706 added to function.ereg-replace.php
| From: | php-general at lists dot php dot net | Date: | Fri, 10 Aug 2001 21:21:15 +0000 |
| Subject: | note 14706 added to function.ereg-replace.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16562@lists.php.net to get a copy of this message | ||
Here is a Javascript implementation of ereg_replace:
function ereg_replace(regs,replacement,str) {
return str.replace(eval("/"+regs+"/g"),replacement);
}
http://www.php.net/manual/en/function.ereg-replace.php