@dunhill: I did have a quick look at it when you posted. I could see some problems and hoped someone else would come along
The following will handle the case you mentioned:
Code:
(?P<title>[^\[\(]+)\s*(\[.*\]|\(.*\))?
But, it doesn't take into account the other metadata attributes. How to add the other attributes is the problem. Does the second part get added after the title in the regex? Or somewhere else?
I think I like @theducks suggestion. The above regex should work with the bulk search&replace.