I am trying to write a JavaScript RegEx which returns content(maybe including nested parentheses) which is between parentheses like the solution described in this article (implemented by Java RegEx)
String:
xxx
@connect(({ app }) => (
{
...app
}
))
xxx
Result:
({ app }) => (
{
...app
}
)
Is it possible to resolve it with JavaScript RegEx?