Re: Filters and sanitizing a regexp
| From: | Richard Heyes | Date: | Fri, 26 Sep 2008 08:36:13 +0000 |
| Subject: | Re: Filters and sanitizing a regexp | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280957@lists.php.net to get a copy of this message | ||
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