answer demo for stack overflow question:
Extract content of code which start with a curly bracket and ends with a curly bracket followed by closing parenthesis