Help with regular expressions

What I’m trying to do

I have a vault with hundreds of files with descriptions and my personal comments.
In order to share this part of my vault, I want to delete my personal notes.
How can I accomplish this?

Things I have tried

I’ve tried some forms of regular expressions in Atom, but it doesn’t work.

Does anyone have any ideas?
Bildschirmfoto 2023-08-14 um 13.33.22

Does that picture show the format of all of the things you want to delete?

(And there isn’t anything in that format that you want to avoid deleting?)

Yes, the picture shows the text (“text, text”), that I want to delete. And i want that the solution look’s like this.

I didn’t test this. It assumes the block IDs are only numbers. I think I didn’t need to escape the ^ in the middle but that it won’t hurt anything. I’m a little fuzzy on multi line regexes so stuff like .+ may need adjusting. But hopefully this will help


(^>\[!callout.+\^[1234567890]+)(\n- .+)



This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.