note 25364 added to function.preg-match
| From: | phpnovice at home-safe dot net | Date: | Fri, 20 Sep 2002 16:35:28 +0000 |
| Subject: | note 25364 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37053@lists.php.net to get a copy of this message | ||
How does this handle an expression which can validly match zero characters because every term in the
pattern is optional? My guess is that such a pattern is certain to match even if no characters
from the target string are subsumed. I'd be concerned about handling successful matches
against zero characters if I was relying on advancing match positions to terminate a loop.
--
http://www.php.net/manual/en/function.preg-match.php
http://master.php.net/manage/user-notes.php?action=edit+25364
http://master.php.net/manage/user-notes.php?action=delete+25364
http://master.php.net/manage/user-notes.php?action=reject+25364