Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Lines above and Below a matched stringby svsingh (Priest) |
on Jun 26, 2003 at 19:57 UTC ( [id://269393]=note: print w/replies, xml ) | Need Help?? |
Here's something a little different. I know you want to match on SOMETHING, but since you'll also need to match on DATE and SOMETHINGELSE (I'm assuming), why not match all three in sequence?
To me, this is a little simpler than the buffer ideas. It probably has some flaws, but it seems to be working.
That returns:
Hope this helps.
In Section
Seekers of Perl Wisdom
|
|