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

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

Expand Messages
  • diodeom
    Jun 30, 2011
      Flo wrote:
      > (?<!org|net) = Negative Lookbehind Assertion matching a position where you do NOT see 'org' or 'net' when looking behind

      Life would be perfect if lookbehinds could accept variable-length patterns...

      To "not capture" the term located anywhere in the line (e.g. in "John Doe;john@...;555-555-5555") a lookahead could offer the necessary flexibility:

      ^!Replace "^(?!.*(org|net).*$).+(\R|\Z)" >> "" WARS
    • Show all 30 messages in this topic