note 26287 deleted from function.ereg by didou

From: Date: Sun, 07 Dec 2003 02:59:52 +0000
Subject: note 26287 deleted from function.ereg by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61557@lists.php.net to get a copy of this message
Note Submitter: tom@tom420.com ---- 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)?)"

« previous php.notes (#61557) next »