How do i remove only non utf8 keywords/lines in a text file.
eg.
你好
相手123abc
this is only abc
I only want to remove lines that contain all english words and not the lines with utf8 words. So in this case only ‘this is only abc’ will be removed. Is it possible to do it in notepad++ or do i need to write a script for it?
This is possible using the following steps;
Open Notepad++ select the Find menu and select the last tab ‘Mark’, enter the regex
^(([a-zA-Z])+\s?)+, select Bookmark Line, and click the button ‘Mark All’.From the drop down menu select; Search –> Bookmark –> Remove Bookmarked Lines
I would also recommend making sure Notepad++ is up to date. I tested this with version 6.3. Marking lines is something added quite recently.