I have the a string like this (separtred by asterisk) :
abc*dddd*fffff*
i need to replace the *
with a newline. i.e the result should be:
abc
dddd
fffff
How can I do this in Emacs? I tried query-replace
but pressing enter doesn't do what I want.
Do quote the enter key: C-q C-j
. There, C-q
inserts the next key literally and C-j
gives newline.
Try query-replace
enter * enter M-j enter ! enter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With