Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: I'm looking for a one-liner filter 'twixt two regexesby zigdon (Deacon) |
on Sep 05, 2002 at 12:03 UTC ( [id://195341]=note: print w/replies, xml ) | Need Help?? |
like everyone else, I'm not 100% sure I understand what you want. But if it's just to print out the lines between a start and a stop regexp, wouldn't this do the trick?
Note that this will not allow /start/ and /end/ to be on the same line. If you want that as an option, you need to replace the .. operator with .... See man perlop. -- Dan
In Section
Seekers of Perl Wisdom
|
|