note 38415 deleted from function.preg-match by didou
| From: | didou@php.net | Date: | Sun, 23 May 2004 14:12:35 +0000 |
| Subject: | note 38415 deleted from function.preg-match by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69991@lists.php.net to get a copy of this message | ||
Note Submitter: stb-devnull@spline.de
----
A correction of a correction :)
<?php
$num="([0-9]|1?\d\d|2[0-4]\d|25[0-5])";
?>
matches indeed any two digit number.
They are matched by the second case where the "1" is optional.
Stephan