Owen
Owen

Reputation: 81

How can I delete all lines containing non-standard English letters using Notepad++?

I have an English word list that needs some fixing.

There are some words that contain an apostrophe and some words that contain accented letters and so on and so forth.

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

How can I do this using Notepad++?

Upvotes: 4

Views: 1299

Answers (2)

goTo-devNull
goTo-devNull

Reputation: 9372

Do you mean everything except ascii? If so, try:

[^\x00-\x7F]+

enter image description here

Upvotes: 0

T D Nguyen
T D Nguyen

Reputation: 7613

Try this:

  1. Ctrl+ H to bring up the Replace dialog
  2. In Find what, enter: ^.*[^a-zA-Z\n\s]+.*$
  3. In Replace with, enter: \n or leave it blank
  4. Check: Regular expression option at the end
  5. Click replace all

Upvotes: 2

Related Questions