0

I want to match strings like (()) - 2 open brackets, 2 closed brackets but not strings like ()() - open and closed and then another opens and closses (() - two opens, one closed

So more specific i want a regex like this

\({n}\){n}

n opened brackets followed by (same value for n, but n must be greedy) n closed brackets.

0 Answers0