in reply to Is there a regular expression version of the index function?

See perldoc perlvar for @- and @+.