delete all lines that start with specific litter
-
hi, i have a HUGE txt file that have more than 100,000,00 lines.
i want to delete any line that start with the letter P ( the entire line not just the letter P ) -
-
@Alan-Kilborn
Thank you, i tried it but didn’t work for me

-
Well, this site is about help with Notepad++.
Not sure what text editor you showed the screenshot from, but it is not Notepad++. -
@Alan-Kilborn
i know , i used what you said with notepad++ didn’t work so i tried another txt editor and still didn’t work -
I probably should have been a bit more specific with my regular expression:
(?-s)^P.*\RBut really, show how it looks in Notepad++, not some other editor (that just confuses things).
-
@Fahad-Alotaibi said in delete all lines that start with specific litter:
I used what you said with notepad++ didn’t work
Then you did something wrong.
Before:
P123456 Q123456 P123456 P123456 M123456
Replace All
After:Q123456 M123456
See, it deleted all the lines that started with P
If it doesn’t work for you, follow the same steps I just showed, including screeenshots.
-
@PeterJones thanks solved my problem too
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