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.*\R
But 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