PHP 正则表达式匹配器,返回匹配的值
github.com/RedactedProfile/preg_match2
源代码
问题
安装量: 1,042
依赖关系: 0
建议者: 0
安全性: 0
星标: 1
关注者: 3
分支: 0
开放性问题: 0
Requires
None
Requires (Dev)
Suggests
Provides
Conflicts
Replaces
MIT 3c90e5bb673c87582bc44cb89020ab6d1c1dc334
regexMatchpreg_match
This package is auto-updated.
Last update: 2024-09-22 04:36:46 UTC
我更希望内置的 preg_match 函数直接返回值,而不是当前提供预定义数组的方法。
composer require redacteddevworks/preg_match2
require 'autoload.php'; $matches = preg_match2('/([\d])/', 'the quick 1 jumped over the lazy 2 dog');