I want to catch bracket/parenthesis pairs that are next to each other and get hold of the words inside them. In the following text I want to catch [oh](so) and [bad](things).
[oh](so)funny
[all]the[bad](things)
If I use the regex r'\[(.*?)\]\((.*?)\)' it will catch [oh](so) and [all]the[bad](things), which is not what I want.
What's a good regex to solve this?