Update process.py [added a new method]

This method returns extract result and index of that particular match along with it.