Community
    • Login

    Change End Of Line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 2 Posters 6.4k 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.
    • Bonnie TuomalaB
      Bonnie Tuomala
      last edited by

      How can I change the End of Line, CR LF, on multiple rows. I need to move it from the current Col: 201 to 611

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Bonnie Tuomala
        last edited by Claudia Frank

        Hello Bonnie-Tuomala,

        so you want to add spaces in front of the EOL chars until it reaches position 611?
        Position might not be the same as column!?

        Cheers
        Claudia

        Bonnie TuomalaB 1 Reply Last reply Reply Quote 0
        • Bonnie TuomalaB
          Bonnie Tuomala @Claudia Frank
          last edited by

          @Claudia-Frank - Yes that is what I want to do. The total length needs to be 611. If I move the position manually it works. I have 3000+ lines to adjust.

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Bonnie Tuomala
            last edited by Claudia Frank

            @Bonnie-Tuomala I am writing this from my mobile and out of my mind, so I did not test it.
            Open replace dialog, mark regular expression, which is in the left corner, and put the following
            into the find what

            (.*{200})(\R)
            

            And in replace with

            \1__@__\2
            

            @ needs to be replaced with 410 spaces.
            Easiest way would be doing it for one line manully and copy the spaces between \1 and \2

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • Bonnie TuomalaB
              Bonnie Tuomala
              last edited by

              I appreciate your help! This comes back with error “Find: invalid regular expression”

              Claudia FrankC 1 Reply Last reply Reply Quote 0
              • Claudia FrankC
                Claudia Frank @Bonnie Tuomala
                last edited by

                @Bonnie-Tuomala

                yes, of course,

                (^.{200})(\R)
                

                should do it.
                And of course __@__ needs to be replaced with spaces, not only @.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • Bonnie TuomalaB
                  Bonnie Tuomala
                  last edited by

                  Wow! That did it! Thanks Claudia - and Happy New Year!

                  Claudia FrankC 1 Reply Last reply Reply Quote 0
                  • Claudia FrankC
                    Claudia Frank @Bonnie Tuomala
                    last edited by

                    Hello Bonnie,

                    thank you and a happy new year to you as well.

                    Cheers
                    Claudia

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