Community
    • Login

    Join Lines function always create spaces

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 4.3k 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.
    • zhangyuhangkZ
      zhangyuhangk
      last edited by

      1
      2
      3
      

      Select the the above lines and press Ctrl + J. The content is converted to

      1 2 3
      

      Is there any way to get rid of the spaces between the numbers?

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner @zhangyuhangk
        last edited by

        @zhangyuhangk

        Instead of using “Join Lines” you could do a regular expression replace-all operation:

        Find-what box: \R
        Replace-with box: make sure this box is EMPTY
        Search mode: ☑ Regular expression
        ☑ Wrap around (maybe…depending upon what you want…)
        “Join Lines” works on the active selection; if you want the replace operation to do likewise, then: ☑ In selection

        If this posting was useful, don’t post a “thanks”, just upvote ( click the ^ in the ^ 0 v area on the right )

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