redacteddevworks / preg_match2
PHP Regex Matcher that returns the matched values
Installs: 1 337
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/redacteddevworks/preg_match2
This package is auto-updated.
Last update: 2025-11-22 07:20:45 UTC
README
Why?
I simply would prefer if the built in preg_match functions would just return the values instead of the current method of supplying a predefined array.
Installation
composer require redacteddevworks/preg_match2
Usage
require 'autoload.php';
$matches = preg_match2('/([\d])/', 'the quick 1 jumped over the lazy 2 dog');