Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Doesn't :PROPERTIES:\n.*\n.*:END: match? Commented Mar 12 at 13:28
  • And if you want to match multiple lines between :PROPERTIES: and :END: you need a bit more in the middle: you need to group the .*\n that matches a single line and apply *? or +? on the group. Commented Mar 12 at 14:12
  • 1
    @NickD The problem that I have is not matching per se, the problem is occur buffer. It's created with file names + line numbers, which makes replacement painful. Commented Mar 12 at 14:28
  • Right - I see what you mean but I don't know of a way to do what you want. I hope somebody comes up with a good answer. Commented Mar 14 at 5:17