I have something like this
name {
abc -> def{x};
abc -> def{x};
abc -> def{x};
abc -> def;
abc -> def;
abc -> def;
}
I want to extract everything between the first and last braces {} so that the result looks like this
abc -> def{x};
abc -> def{x};
abc -> def{x};
abc -> def;
abc -> def;
abc -> def;
This is a different question because I am looking for everything between FIRST and LAST brackets.