Community
    • Login

    How to repalce newlines to other characters with Extended Search

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.3k Views 2 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.
    • Shima HisaharuS Offline
      Shima Hisaharu
      last edited by

      I hope to replace in the following text with

      X41562005-01\n
      X7136\t2012-01\n
      X4151\t2001-02\n
      X4159\t2005-01\n

      1 Reply Last reply Reply Quote 1
      • Shima HisaharuS Offline
        Shima Hisaharu
        last edited by Shima Hisaharu

        Correction of the Question:

        I hope to add <tab> and a string after every end of lines in the following text:

        X4156 2005-01
        X7136 2012-01
        X4151 2001-02
        X4159 2005-01

        like, for example,

        X4156 2005-01 a
        X7136 2012-01 a
        X4151 2001-02 a
        X4159 2005-01 a

        Then I used the feature of Extended Replace: In Replace Window, setting
        Find what: \n
        Replace with: \ta
        Search mode: Extended

        But the result is as follows:

        X4156 2005-01 a
        aX7136 2012-01 a
        aX4151 2001-02 a
        aX4159 2005-01 a

        Why? What should I do?

        Claudia FrankC 1 Reply Last reply Reply Quote 1
        • Claudia FrankC Offline
          Claudia Frank @Shima Hisaharu
          last edited by

          @Shima-Hisaharu

          what you have posted and what you did describe doesn’t match.

          If you want to have it added you need to replace with \n\ta

          But from what you’ve posted as result you want to insert it in front of \n
          which means you need to replace with \ta\n.

          Find is, for both, like you already did \n

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 1

          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