• Login
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.
  • B
    Bonnie Tuomala
    last edited by Dec 30, 2015, 11:32 PM

    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

    C 1 Reply Last reply Dec 30, 2015, 11:43 PM Reply Quote 0
    • C
      Claudia Frank @Bonnie Tuomala
      last edited by Claudia Frank Dec 30, 2015, 11:45 PM Dec 30, 2015, 11:43 PM

      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

      B 1 Reply Last reply Dec 31, 2015, 2:03 PM Reply Quote 0
      • B
        Bonnie Tuomala @Claudia Frank
        last edited by Dec 31, 2015, 2:03 PM

        @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.

        C 1 Reply Last reply Dec 31, 2015, 2:23 PM Reply Quote 0
        • C
          Claudia Frank @Bonnie Tuomala
          last edited by Claudia Frank Dec 31, 2015, 2:25 PM Dec 31, 2015, 2:23 PM

          @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
          • B
            Bonnie Tuomala
            last edited by Dec 31, 2015, 3:09 PM

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

            C 1 Reply Last reply Dec 31, 2015, 3:51 PM Reply Quote 0
            • C
              Claudia Frank @Bonnie Tuomala
              last edited by Dec 31, 2015, 3:51 PM

              @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
              • B
                Bonnie Tuomala
                last edited by Jan 2, 2016, 10:50 PM

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

                C 1 Reply Last reply Jan 2, 2016, 11:22 PM Reply Quote 0
                • C
                  Claudia Frank @Bonnie Tuomala
                  last edited by Jan 2, 2016, 11:22 PM

                  Hello Bonnie,

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

                  Cheers
                  Claudia

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