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 around option

      • Select the Regular expression search mode

      • Click on the Replace All button

    Et voilà !!

    Notes :

    • I added the negative look-ahead (?!I\x20) to be sure that the form “I”, followed with a space character, is not considered as a word to delete !

    Best Regards,


  • Thank you very much! It works!

    Merci encore :)

Log in to reply