note 38415 added to function.preg-match

From: Date: Fri, 19 Dec 2003 17:07:10 +0000
Subject: note 38415 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-62249@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38415 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38415&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38415&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62249) next »