Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    2
    3
    66
    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 0
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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 0 1 Reply Last reply Reply Quote 2
        • Chris Tanguay 0
          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
          Copyright © 2014 NodeBB Forums | Contributors