Add text to end of line
-
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!
-
@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
-
It really worked for me. I searched in the forum but I guess I missed it. I didn’t understand what I did wrong.
-
@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
-
@PeterJones Now I understand. I can edit the code you gave. So much detail is unnecessary for me.