Community
    • Login

    Delete empty lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 4 Posters 25.9k 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.
    • Ikhlas ChaabaneI
      Ikhlas Chaabane
      last edited by

      plz i need a help for deleted empty lines in notePad,
      how can I do it ?

      1 Reply Last reply Reply Quote 0
      • DaveyDD
        DaveyD
        last edited by

        You can do this with regex pretty simply:
        Open find/replace dialog and type as follows:
        Search: ^$\r\n
        Replace: empty (i.e. leave blank!)
        Check regex at bottom of dialog. Replace all should remove all empty lines from the file.

        Another method could be as follows:
        Search: (\r\n){1,}
        Replace: \r\n

        Regards,
        David

        Ikhlas ChaabaneI 1 Reply Last reply Reply Quote 1
        • Ikhlas ChaabaneI
          Ikhlas Chaabane @DaveyD
          last edited by

          @DaveyD thank you, it is done successfully ;)

          1 Reply Last reply Reply Quote 0
          • Andrzej KmicicA
            Andrzej Kmicic
            last edited by

            meu Edit -> Line Operations -> Delete Empty Lines

            decodermanD 1 Reply Last reply Reply Quote 1
            • decodermanD
              decoderman @Andrzej Kmicic
              last edited by

              @Andrzej-Kmicic said:

              Edit -> Line Operations -> Delete Empty Lines

              That’s how I do it too, it’s the quickest way.

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