Answers for "php regex named groups"

PHP
0

php regex named groups

It is possible to name a subpattern using the syntax (?P<name>pattern).
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 (?<name>pattern) and (?'name'pattern).
Posted by: Guest on June-27-2020

Browse Popular Code Answers by Language