In Emacs, I tried to replace a character say ";" with a new line using replace-string and/or replace-regexp.
Below commands are what I have tried.
M-x replace-string ; \n (will replace ";" with 2 characters "\n" )
M-x replace-regex ; \n ( get below error from minibuffer )
Invalid use of `\' in replacement text.
Is there anything wrong using replace-string. Or if there is any other way to do that? Thanks.