Regular expression to match text within brackets - unclosed bracket woes
I'm having trouble with the regex to find text in a string that is contained within brackets. The following works fine, except it's picking up unclosed bracketed text. I don't want it to match to anything that doesn't have a closing bracket.
Here's an example string:
[Match1] Here is some text. [Don't match this. [Match2]