in reply to Re^2: m modifier not doing what I'm expecting?
in thread m modifier not doing what I'm expecting?

Then maybe you should elaborate on what output you want.

  • Comment on Re^3: m modifier not doing what I'm expecting?

Replies are listed 'Best First'.
Re^4: m modifier not doing what I'm expecting?
by Anonymous Monk on Dec 21, 2011 at 13:46 UTC

    I'm not the OP, but I think it's pretty clear the OP wants to extract the lines

    FOO: Example header 1 FOO: a FOO: Header 2 example FOO: Testing header item with some stuff in
    The non-greedy .+? also hints in this direction (though non-greediness is not required here, unless you're using /s).