I would like to get the string inside a pair of parenthesis.
For example, my string is Here is my string (This is the string in parenthesis (and this is the second layer))
.
I want to get This is the string in parenthesis (and this is the second layer))
I tried to use (?<=\()(.*?)(?=\))
and I got['and this is the second layer']
.
What is the correct approach?
Thanks.