Improperly nested brackets regexp

76 Views Asked by At

I need a regexp that will find improperly nested brackets, not properly. For example:

()(( — matches regexp
(()) - doesn't match regexp
))((( — matches regexp
etc.
0

There are 0 best solutions below