The problem requirements just aren't specified clearly enough here to proceed further without hearing more from the OP.
I like the idea presented by oko1. But until the OP gives a rule for what to include before the "match", we are just all guessing.
In reply to Re^3: searching across a file then parsing
by Marshall
in thread searching across a file then parsing
by newperlplayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |