Re: Filters and sanitizing a regexp

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

 



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?

-- 
Richard Heyes

HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.phpguru.org/RGraph

-- 
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