Remove some mistakes !! Need help plz !
-
Hi friends,
I have several documents, and I want to remove some mistakes like:
L, l, d, b, e, H, K, p, j, Z, i,Here is a demonstration:
P, Access our application, h.
r, Before, download an app from Google Play, L.How to keep the words that have 2 or more letters, and delete the ones that have only 1 character?
-
Hello, @el-kohen-amal, and All,
If you want to delete words, consisting of a single letter, upper or lower case, follow this road map :
-
Open your file in N++
-
Open the Replace dialog (
Ctrl + H)-
SEARCH
(?-i)\b(?!I\x20)[\l\u]\b -
REPLACE
Leave EMPTY -
Tick the
Wrap aroundoption -
Select the
Regular expressionsearch mode -
Click on the
Replace Allbutton
-
Et voilà !!
Notes :
- I added the negative look-ahead
(?!I\x20)to be sure that the form “I”, followed with aspacecharacter, is not considered as a word to delete !
Best Regards,
guy038
-
-
Thank you very much! It works!
Merci encore :)
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