note 26287 added to function.ereg
| From: | tom at tom420 dot com | Date: | Fri, 25 Oct 2002 02:49:23 +0000 |
| Subject: | note 26287 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38527@lists.php.net to get a copy of this message | ||
Just upgraded PHP from 4.2.1 to 4.2.3.
This worked before as a valide regex:
"([[:digit:]]{1,2}:[[:digit:]]{2}(am|pm|))"
It would locate the time in a string, with either 'am', 'pm' or nothing
(24-hours format)
But now I got:
Warning: REG_EMPTY in bla.php on line 72
My solution was the following:
"([[:digit:]]{1,2}:[[:digit:]]{2}(am|pm)?)"
--
http://www.php.net/manual/en/function.ereg.php
http://master.php.net/manage/user-notes.php?action=edit+26287
http://master.php.net/manage/user-notes.php?action=delete+26287
http://master.php.net/manage/user-notes.php?action=reject+26287