Community
    • Login

    I want to mark lines that do NOT contain a certain character

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 241 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Chris Tanguay 0C
      Chris Tanguay 0
      last edited by

      Hi, all! OK, so I have a large text file of inventory vendor part numbers, many hundreds of lines. What I need to do is mark all the lines that do NOT contain a dash (-) anywhere in the line. I know how to mark the lines that DO contain a dash, but I need the opposite. Is there a way to do this with either regex, or some other trick… or… is there a way to SELECT THE INVERSE, once I’ve selected those lines WITH the dash? Any of those would work. Thanks - Chris

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Chris Tanguay 0
        last edited by

        @Chris-Tanguay-0

        Probably the easiest thing to do is to bookmark (with the Mark operation) the lines that DO have a dash, and then invert the bookmarked lines via:

        62c527d5-21d2-49eb-b69a-9ed2d78db60f-image.png

        Chris Tanguay 0C 1 Reply Last reply Reply Quote 2
        • Chris Tanguay 0C
          Chris Tanguay 0 @Alan Kilborn
          last edited by

          @Alan-Kilborn Thank you. That works prefectly!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors