Given Input:
{abcd} {{abcd}} {{{abcd}}}
How can I extract texts which are surrounded by either single braces or triple braces? I don't text if double braces surround it.
Output:
{abcd} {abcd}
The second {abcd} in the output is extraced from {{{abcd}}}
Do you have any ideas?