A friend was showing off his regex-fu and the virtues of "named groups"
and how great Python is, knowing that PHP had to be equally as good
(since it uses the same PCRE libraries), we whipped up this little test.
So now us PHP folks can enjoy the same benefit! :-)

vince...@dev1:~$ cat ./named_groups_test.php 


vince...@dev1:~$ php ./named_groups_test.php 
    [0] => abcdefghijklmnopqrstuvwxyz
    [foo] => abc
    [1] => abc
    [2] => defghijklmnopqrstuvw
    [bar] => xyz
    [3] => xyz

Reply via email to