So, I have a 300+ page document, and I want to remove all the notes I wrote, which are enclosed within "[(" and ")]". Since I also sometimes nest multiple notes, "[(blah [(blah [(blah)])] )]", I need to make sure I don't just remove "[(blah [(blah [(blah)]".
So, to do that, I am not sure what is most efficient ... and this is a large job. What occurs to me is that I could check to see there aren't two consecutive "[(", with a ".*" between them, and just remove the simple cases of "[(...)]". I hope there is a better way than this, though.
I think the two regex codes I use would be something like "/(?<=[[(])[\s\S]*(?=[(])/gi" and "/(?![\s\S][[(][\s\S][[(]).*/gi". Something like that? I'm sorry, I'm still trying to figure out these things.
Also, can I write a python program to open an OpenOffice (odt) file and edit it? The "open(r'C:\Users\Blah\Documents\Blah.odt', 'rw').read()" will work for that too, right?