Richard Heyes wrote:
Hi,
I don't think that one is quite right... Your optionals (?) are
confusing. Why [0-3]?[0-9] AND the \d?
No reason.
Why [0-9] at all (since \d is
essentially [0-9])?
Again, no reason.
Why use the discarded capture group (?:) since the
[0-3] is already optional?
It makes it look more like gibberish?
hate to say this but why not cater for all eventualities and just use
strtotime( $whatever );
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php