in reply to Exact pattern match inside index()
Thank you all for your responses. I apologize for the delay in responding. Both toolic and Kennethk's suggestions worked. And as toolic added in the update, kennethk's option of using $-[0] seemed cleaner. Thanks also for the references.