• Login
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.
  • I
    Ikhlas Chaabane
    last edited by Apr 10, 2016, 12:50 AM

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

    1 Reply Last reply Reply Quote 0
    • D
      DaveyD
      last edited by Apr 10, 2016, 1:11 AM

      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

      I 1 Reply Last reply Apr 10, 2016, 1:27 AM Reply Quote 1
      • I
        Ikhlas Chaabane @DaveyD
        last edited by Apr 10, 2016, 1:27 AM

        @DaveyD thank you, it is done successfully ;)

        1 Reply Last reply Reply Quote 0
        • A
          Andrzej Kmicic
          last edited by Apr 10, 2016, 8:44 AM

          meu Edit -> Line Operations -> Delete Empty Lines

          D 1 Reply Last reply Apr 10, 2016, 1:25 PM Reply Quote 1
          • D
            decoderman @Andrzej Kmicic
            last edited by Apr 10, 2016, 1:25 PM

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