I understand that you want a word after the patten match in a line, for this why do not you read this first
Grouping things and hierarchical matchingMoreover you said you want a word read about word boundary that will help you.
In reply to Re: how to print word next to pattern match??
by vinoth.ree
in thread how to print word next to pattern match??
by sumathigokul
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |