I am looking for a regex that will match string(s) between a consecutive [ and ] parenthesis. I have a regex that looks like this \[(.*?)\] and it matches stuff between [ ] which might have a ] between it.
Example:
String: [ text [text1] ]
should return [text1], [ text [text1] ]
currently my regex would return [ text [text1]
I believe this must have something to do with the look ahead assertion however, not sure how to look ahead more than one character.