Seems like it would be as popular as gnu grep's -Anum -Bnum operators.
If not a module... then a brief walk thru of how it might be done so that I can write it myself... It's ok if its primitive. I do have some experience... just not much
I'm just thinking it must be a fairly common desire for hardened 'perlers' and maybe there is kind of common way of doing it.
In reply to Grab 3 lines before and 2 after each regex hit by HarryPutnam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |