How to append string to end-of-line


#1

I’m attempting to append

    

to the end of a bunch of lines.

I selected the block of lines (over 200) and then Find

    $\n

with Regex and Current Selection selected. By all appearances the end-of-line is selected on the selected lines.

But when I attempt to Replace All with

   \n

nothing happens, or, at least the desired affect does not take place.

I’m by no means a regex expert. I have used it occasionally with other editors without much trouble.

Jamie


#2

I suspect you’re running into this known issue:


#3

That sounds like the problem.

In any case, I didn’t really need to reference “$”, all I need to match on is

    \n

and replace it with

    \n

This worked fine. (Of course, I didn’t figure this out until AFTER I had manually edited 200 lines.)

This topic can be closed as far as I’m concerned.


#4

Closing by request.


#5