Remove Nested Brackets (Moving from Roam)

I’m trying to move from Roam into Obsidian. I’ve been able to reformat a good bit of my markdown stuff but the big one I’m now running into is nested brackets.

I’ve lots of things like: [[This is an [[example]]]].

Where I need to turn it into [[This is an example]] in any linked reference within a file and then remove all brackets for the actual name of the file.

I’ve tried to to look at regex which I can do for replacing the title but the actual text inside I’m having a hard time figuring out.

Any ideas?

Might be good to check the Roam threads in Meta - Migration Workflows

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