Create a new file.
Enter a few lines.
Place the caret at the beginning of the first line.
Execute the command for replace with regular
expressions
replace this ^
with ;;;
Now each line begins with ";;;"
Execute the command for replace with regular
expressions
replace this $
with this some-string
Nothing happens. It should append "some-string" to the
end of each line.