Re: Filters and sanitizing a regexp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux