php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46585 PCRE minimum matching length
Submitted: 2008-11-16 21:06 UTC Modified: 2008-11-16 23:43 UTC
From: ms419 at freezone dot co dot uk Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.6 OS: Debian
Private report: No CVE-ID: None
 [2008-11-16 21:06 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-16 23:43 UTC] scottmac@php.net
We wrap around the PCRE library and can only use whats available, so this isn't possible
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 10:01:32 2024 UTC