ID: 46585
Updated by: [EMAIL PROTECTED]
Reported By: ms419 at freezone dot co dot uk
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Debian
PHP Version: 5.2.6
New Comment:
We wrap around the PCRE library and can only use whats available, so
this isn't possible
Previous Comments:
------------------------------------------------------------------------
[2008-11-16 21:06:46] ms419 at freezone dot co dot uk
Description:
------------
I wish for a PCRE function to get the minimum matching length of a
regular expression. For example:
* preg_min_length('/^HTTP.*/'): 4
* preg_min_length('/^(?:HTTP)?.+/'): 1
* preg_min_length('/^(?:HTTP)?.*/'): 0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46585&edit=1