Community
    • Login

    Hi I stuck with row and columns

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.8k Views 1 Watching
    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.
    • NotepadplusplusisthebestN Offline
      Notepadplusplusisthebest
      last edited by

      Hi I know how to from column

      1;
      2;
      3;
      4;
      5;
      6;

      Get row

      1;2;3;4;5;6

      But how to get from row 1;2;3;4;5;6;7;8;9
      to column with an exact number of characters. I need this for words, but made an example with numbers.
      1;2;3
      4;5;6
      7;8;9

      Can someone help me with this?
      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • guy038G Offline
        guy038
        last edited by

        Hello, @notepadplusplusisthebest,

        Very easily, indeed !

        Open the Replace dialog ( Ctrl + H )

        SEARCH .{6}

        REPLACE $0\r\n

        OPTIONS Regular expression ticked and . matches newline unticked

        ACTION : Click on the Replace All button or several ones on the Replace button

        Remark : If you’re using Unix files, the REPLACE regex should be $0\n


        An other example . Suppose the line, below :

        ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9
        

        then the regex S/R :

        SEARCH .{5}

        REPLACE $0\r\n

        Would change that line into :

        ----+
        ----1
        ----+
        ----2
        ----+
        ----3
        ----+
        ----4
        ----+
        ----5
        ----+
        ----6
        ----+
        ----7
        ----+
        ----8
        ----+
        ----9
        

        Best Regards

        guy038

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors