I want to mark lines that do NOT contain a certain character
-
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
-
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:

-
@Alan-Kilborn Thank you. That works prefectly!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login