我正在尝试;使用replace-string和/或replace-regexp在Emacs中使用新行替换字符 - 比如说.
;
replace-string
replace-regexp
我尝试了以下命令:
M-x replace-string RET ; RET \n
\n
这将取代;2个字符:\n.
M-x replace-regex RET ; RET \n
replace-regex
这会导致以下错误(显示在迷你缓冲区中):
替换文本中使用"\"无效.
使用replace-string此任务有什么问题?还有其他办法吗?
谢谢.
emacs replace
emacs ×1
replace ×1