3 ms·
I tend to do it in sublime with a regex: Find/replace all: ^(.*)$\n with "$1",
by eterm 7y ago
I tend to do it in sublime with a regex:
Find/replace all:
^(.*)$\n
with
"$1",
- useragent86 7y agoThat also works well in Emacs: C-M-% runs the command query-replace-regexp (found in global-map), which is an interactive compiled Lisp function in ‘replace.el’. It is bound to C-M-%, <menu-bar> <edit> <replace> <query-replace-regexp>. (query-replace-regexp REGEXP TO-STRING &optional DELIMITED START END BACKWARD REGION-NONCONTIGUOUS-P) Replace some things after point matching REGEXP with TO-STRING. As each match is found, the user must type a character saying what to do with it. For directions, type <help> at that time.