Community
    • Login

    Remove some mistakes !! Need help plz !

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 383 Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          El kohen Amal
          last edited by

          Thank you very much! It works!

          Merci encore :)

          1 Reply Last reply Reply Quote 1

          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors