Input
I've a string like this:
string_ = "abc {def {ghi} { {jkl} {mno}} } \n abc { lmn {ghi} { {jkl} {mno}} }"
I need to extract the values in curly braces, if it contains the string 'def', using python regex.
Output
Expected output:
"{def {ghi} { {jkl} {mno} } }"
Could someone help me on this?