How to remove all lines containing non-standard English letters using Notepad ++?

I have an English word list that needs some fixation.

There are a few words containing the apostrophe and some words containing accented letters, etc. etc.

I don’t know all the non-standard English letters used in the word list, so I want to be safe and just delete all lines containing non-standard English letters.

How to do it with Notepad ++?

+4
source share
2 answers

Try the following:

  • Ctrl + H to open the Replace dialog box
  • In Find whatenter:^.*[^a-zA-Z\n\s]+.*$
  • In Replace with,, type \n, or leave blank
  • : Regular expression
  • replace all
+2

, ascii? , :

[^\x00-\x7F]+

enter image description here

0

Source: https://habr.com/ru/post/1629289/


All Articles