precision on regex

Precise to use $1 and $2 for $script_name & $path_info if admin use ^(.+?\.php)(/.*)?$ instead of ^(?<script_name>.+?\.php)(?<path_info>/.*)?$