Delete everything after a value.
-
Hello everyone, I have found in another treat this code
((?s)((^.)“value”))(.$)
Whis will choose the last word called “value” on a text and, if used replace with empty, delete everything before that in a file.
Now, what i want is the complete opposite, I want to delete everything AFTER “value”
Additionally if someone could tell me how to start with the first found value rather than the last found value that would be great, since the code I posted here always choose the last “value” found.
Thanks in advance
-
@Raul-A-Ocasio-Gonzalez
I realized that Notepad++ has the option to reverse a search
-
@Raul-A-Ocasio-Gonzalez
means that you found your solution?
I’m asking because I was going to respond to the original question. -
@Raul-A-Ocasio-Gonzalez said in Delete everything after a value.:
Notepad++ has the option to reverse a search
What does that even mean?
If I’m doing a regular expression search mode search, my Backward direction checkbox is disabled. Clearly earlier you were talking about a regex search. Hmmm.
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