• Login
Community
  • Login

I need to use ctrl+f to add a tab after a symbol for a very large text file.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 3 Posters 375 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.
  • C
    Cc
    last edited by Apr 16, 2022, 3:28 PM

    I have text following this format:

    APPLES:01;PEARS:02;BANANAS:03;TOMATOES:11;

    Using ‘replace all’ in ctrl+f , can I format the text into this?

    APPLES:01;
    PEARS:02;
    BANANAS:03;
    TOMATOES:11;

    I’ve tried ;\t but nothing happens other than it adding \t after every ;.

    A 1 Reply Last reply Apr 16, 2022, 3:32 PM Reply Quote 0
    • A
      Alan Kilborn @Cc
      last edited by Apr 16, 2022, 3:32 PM

      @cc

      Find: ;
      Replace: ;\r\n
      Search mode: Regular expression

      C N 2 Replies Last reply Apr 16, 2022, 3:50 PM Reply Quote 1
      • C
        Cc @Alan Kilborn
        last edited by Apr 16, 2022, 3:50 PM

        @alan-kilborn

        I had to use Extended instead of Regular expression but other than that it worked.

        Thanks, this saved me a lot of time!

        A 1 Reply Last reply Apr 16, 2022, 5:27 PM Reply Quote 0
        • A
          Alan Kilborn @Cc
          last edited by Apr 16, 2022, 5:27 PM

          @cc said in I need to use ctrl+f to add a tab after a symbol for a very large text file.:

          I had to use Extended instead of Regular expression but other than that it worked.

          There is no reason why this would not also work in Regular expression mode.

          1 Reply Last reply Reply Quote 1
          • N
            Neil Schipper @Alan Kilborn
            last edited by Neil Schipper Apr 17, 2022, 3:51 PM Apr 17, 2022, 3:49 PM

            
            APPLES:01;PEARS:02;BANANAS:03;TOMATOES:11;
            
            <a few hundred lines of text snipped>
            
            // WARNING!! DO NOT EDIT THE FOLLOWING LINE. IF IT IS NOT AN EXACT MATCH, ROBOJUICE WILL EXPEL INTAKE BINS AND ENTER SELF-CLEANING MODE.
            
            Autorun=1;Selfclean=0
            
            
            1 Reply Last reply Reply Quote 0
            2 out of 5
            • First post
              2/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors