I am currently facing an issue with this specific string:
{1 (Test)}{2 ({3 (A)}{4 (B)}{5 (C)})}{100 (AAA{101 (X){102 (Y)}{103 (Z)})}
My goal is to divide it using {
as the initial delimiter and }
as the final delimiter. However, there are nested brackets present in the string.
Is there a way for me to split this string so that it appears like this:
1 (Test)
2 ({3 (A)}{4 (B)}{5 (C)})
100 (AAA{101 (X){102 (Y)}{103 (Z)})
Furthermore, I will also need to perform another split within the nested brackets afterward.