Currently, I have this regex for matching content (group 1) inside parenthesis: \((.*?)\)
It is working great, but I would like it to only match the last occurrence of a set of parenthesis:
Test: "(no(yes)"
With my regex the group 1 is no(yes)
but I would like it to return yes
.
Thank you!
Precision: This is regarding the last set of parenthesis which means that "(no(yes + (1 - 3))" should return yes + (1 - 3)
So \(([^()]+)\)
is not working as the content of the last set of parenthesis could contain parenthesis.