index: support PHP 5.2.2-style "alternative" named captures