📜  php 正则表达式命名组 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:14.335000             🧑  作者: Mango

代码示例1
It is possible to name a subpattern using the syntax (?Ppattern).
This subpattern will then be indexed in the matches array by its normal
numeric position and also by name. PHP 5.2.2 introduced two alternative
syntaxes (?pattern) and (?'name'pattern).