Loading ...
Sorry, an error occurred while loading the content.

21848Re: [Clip] Remove all lines not containing something

Expand Messages
  • diodeom
    Jun 30, 2011
    • 0 Attachment
      Flo wrote:
      >
      > BTW, also a simple one-liner might perform well...
      >
      > ^!Replace "^.+(ru|com)(\R|\Z)" >> "" WARS
      >

      I have to admit that I didn't consider the condition where the "keeper" terms are always at the line's end -- despite the provided sample data. Your look-behind is a beautifully simple solution for this case.
    • Show all 30 messages in this topic