#46585 [Opn->Bgs]: PCRE minimum matching length

From: Date: Sun, 16 Nov 2008 23:43:11 +0000
Subject: #46585 [Opn->Bgs]: PCRE minimum matching length
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131007@lists.php.net to get a copy of this message
 ID:               46585
 Updated by:       scottmac@php.net
 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



Thread (2 messages)

« previous php.bugs (#131007) next »