Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Remove some mistakes !! Need help plz !

    Help wanted · · · – – – · · ·
    2
    3
    35
    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 Amal
      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
      • guy038
        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 Amal
          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
          Copyright © 2014 NodeBB Forums | Contributors