• Login
Community
  • Login

Add text to end of line

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 3 Posters 530 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.
  • D
    Doğancan
    last edited by Aug 27, 2023, 8:48 PM

    There is such an article and I need to add a " sign at the end of all of them.(there are blank lines in between and should not be added to them)

    “3”: "All I wanted was to be under the flashing lights, pouring\nout my soul to people who love my music…

    “3”: "And what did I end up doing? I walked right into a trap, not\neven caring about the consequences.

    “3”: "So ignorant… So… stupid!

    T 1 Reply Last reply Aug 27, 2023, 8:57 PM Reply Quote 0
    • T
      Terry R @Doğancan
      last edited by Terry R Aug 27, 2023, 9:26 PM Aug 27, 2023, 8:57 PM

      @Doğancan-yılmazer said in Add text to end of line:

      I need to add a " sign at the end of all of them.

      The answer might be:
      Find What:(?-s)(".+)
      Replace With:${1}"

      The search mode is “regular expression” and this uses the Replace function.

      As you haven’t followed the request to include before and after examples as per the post “Please Read This Before Posting” at the start of the Help Wanted section it’s possible this won’t work for you. If so, read that post and follow the instructions so we can better help you.

      Terry

      D 1 Reply Last reply Aug 28, 2023, 11:07 AM Reply Quote 2
      • D
        Doğancan @Terry R
        last edited by Aug 28, 2023, 11:07 AM

        It really worked for me. I searched in the forum but I guess I missed it. I didn’t understand what I did wrong.

        P 1 Reply Last reply Aug 28, 2023, 1:39 PM Reply Quote 0
        • P
          PeterJones @Doğancan
          last edited by PeterJones Aug 28, 2023, 2:26 PM Aug 28, 2023, 1:39 PM

          @Doğancan said in Add text to end of line:

          I didn’t understand what I did wrong.

          You didn’t read the post he mentioned, nor the “Formatting Forum Posts” nor " Template for Search/Replace Questions" that it linked to, so your post showed “smart quotes” instead of real "ASCII quotes"

          update: showed ASCII quotes correctly; added links to the FAQ entries in question

          D 1 Reply Last reply Aug 29, 2023, 6:54 PM Reply Quote 1
          • D
            Doğancan @PeterJones
            last edited by Aug 29, 2023, 6:54 PM

            @PeterJones Now I understand. I can edit the code you gave. So much detail is unnecessary for me.

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