in reply to Re^2: regex man they are tough
in thread regex man they are tough

The scalar $idx contains the return value from the builtin function index.