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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ms419 at freezone dot co dot uk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 21 02:00:03 2025 UTC