Community

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

    One long line into multiple lines

    Help wanted · · · – – – · · ·
    2
    4
    136
    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.
    • Aleksandar
      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

      Aleksandar Terry R 2 Replies Last reply Reply Quote 0
      • Aleksandar
        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 R
          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
          • Aleksandar
            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
            Copyright © 2014 NodeBB Forums | Contributors