@carypt said in How to join these two lines:
(! you will have to add end of line characters to the replace string)
Please read this as constructive criticism, I mean no offence.
A trick you will learn is that since you have captured the line ending in the search code (\R), then you can use that in the replacement field by including the group number (\2) in your case. So it doesn’t matter what type of line ending the file uses, you have captured it and can use it in the replacement.
Also, you may want to format your answers a bit better. Just one long paragraph makes it a bit hard to understand. And with the s: and r: I know what they are, but sometimes newbies won’t, so consider writing things in full.
Just take your cue from some of the seasoned forum members in how to write “lovely” prose.
Cheers
Terry