Delete all hyperlinks in an obsidian note / .md file

Process

  • using the Regex Find and Replace Add on

  • run the “find and replace” command

  • in the find section insert: (?:__|[#])|[(.?)](.*?)

  • in the replace section insert: $1

  • if you select a section of the text and hit the command, there is the option to only replace links there

I was looking for this feature for ages and it helps me a lot, so I hope you can safe the time :slight_smile:
Props to this post: javascript - Regex match markdown link - Stack Overflow
There I got the solution from.

3 Likes