Community
    • Login

    Remove some mistakes !! Need help plz !

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 176 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • El kohen AmalE
      El kohen Amal
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • guy038G
        guy038
        last edited by guy038

        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,

        guy038

        1 Reply Last reply Reply Quote 1
        • El kohen AmalE
          El kohen Amal
          last edited by

          Thank you very much! It works!

          Merci encore :)

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors