Community
    • Login

    Add text to end of line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 522 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.
    • DoğancanD
      Doğancan
      last edited by

      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!

      Terry RT 1 Reply Last reply Reply Quote 0
      • Terry RT
        Terry R @Doğancan
        last edited by Terry R

        @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

        DoğancanD 1 Reply Last reply Reply Quote 2
        • DoğancanD
          Doğancan @Terry R
          last edited by

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

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Doğancan
            last edited by PeterJones

            @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

            DoğancanD 1 Reply Last reply Reply Quote 1
            • DoğancanD
              Doğancan @PeterJones
              last edited by

              @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
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors