note 8574 deleted from preg_replace by ronabop
| From: | ronabop@php.net | Date: | Sun, 01 Oct 2000 08:06:07 +0000 |
| Subject: | note 8574 deleted from preg_replace by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5768@lists.php.net to get a copy of this message | ||
I felt it necessary to point out that Example 1 above does not work correctly. The first line
should be:
$patterns = array ("/(19|20)(d{2})-(d{1,2})-(d{1,2})/", "/^s*{(w+)}s*=/");
and the line after that should be:
$replace = array ("\3/\4/\1\2", "$\1 =");
THIS will produce the desired results:
$startDate = 5/27/1999