http://www.perlmonks.org?node_id=11111554


in reply to command line perl command to get between lines with non greedy match

Input:

TEXT6 PATTERN3 SOME INFO
Output:
TEXT6 PATTERN3 SOME INFO
Is it true that your input has  TEXT6 and the terminating  PATTERN3 string on the same line, and that the output should be reformatted so that they are on separate lines separated by a blank line? (BTW: Thanks for editing your post, but you left no citation of any change (update: please see How do I change/delete my post?).)


Give a man a fish:  <%-{-{-{-<