note 25364 rejected from function.preg-match by nicos
| From: | nicos@php.net | Date: | Fri, 20 Sep 2002 16:40:36 +0000 |
| Subject: | note 25364 rejected from function.preg-match by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37054@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.