下面的文档
#+BEGIN_SRC shell
ls ~ | head
#+END_SRC
#+RESULTS:
| $tty |
| 8022 |
| anaconda3 |
| Desktop |
| Documents |
| Downloads |
| exclude-me.txt |
| geckodriver.log |
| index.html |
| Jupyter |
文档内有几百个这样的代码块, 看着很不连贯, 想用正则去掉 #+END_SRC
与 #+RESULTS:
之间的空行
M-x调用 replace-regex 尝试了以下的匹配:
[[:space:]]*\(#+RESULTS:\) → \1
^[[:space:]]*\(#+RESULTS:\) → \1
\(#+END_SRC\)[[:space:]]*\(#+RESULTS:\) → \1\2
^[[:space:]]*\(#\+RESULTS:\) → \1
都删不掉,
请教, 应该怎样匹配?