Community
    • Login

    One long line into multiple lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 13.6k 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.
    • AleksandarA
      Aleksandar
      last edited by

      Hello, can anyone help me

      So im stuck, i have a one long line but i need it to be in multiple lines

      exmpl. 123456:xxxxx 123456:xxxxx 123456:xxxxx 123456:xxxxx

      It has spaces betwen then i want it to be like this
      123456:xxxxx
      123456:xxxxx
      123456:xxxxx

      AleksandarA Terry RT 2 Replies Last reply Reply Quote 0
      • AleksandarA
        Aleksandar @Aleksandar
        last edited by

        @Aleksandar said in One long line into multiple lines:

        t has spaces betwen then i want it to be like this

        1 Reply Last reply Reply Quote 0
        • Terry RT
          Terry R @Aleksandar
          last edited by

          @Aleksandar said in One long line into multiple lines:

          So im stuck, i have a one long line but i need it to be in multiple lines

          This can be achieved using “regular expressions” in the replace function.
          Find What:\x20 this is the representation of a space character, or you can just type a space character
          Replace With:\r\n this is the carriage return and line feed control characters as used in Windows. If the file is to be used in Linux or Mac OS systems then this might need altering as appropriate to the OS.
          Set search mode to “regular expression” copy and paste in the red text above and click on “Replace All”. That should fix it for you.

          To learn about regular expressions read the FAQ posts, some good links to sites to learn from.

          Terry

          1 Reply Last reply Reply Quote 1
          • AleksandarA
            Aleksandar
            last edited by

            @Terry-R said in One long line into multiple lines:

            \r\n

            Thank you so much, u saved my life <3

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