title: Split string using multiple nested delimiters
body: <p>I have a problem with this string:</p>
  
  <pre><code>{1 (Test)}{2 ({3 (A)}{4 (B)}{5 (C)})}{100 (AAA{101 (X){102 (Y)}{103 (Z)})}
  </code></pre>
  
  <p>I want to split it using <code>{</code> for the first delimiter and <code>}</code> for the last delimiter, but as you can see I have nested brackets.</p>
  
  <p>How can I split this string to have something like this:</p>
  
  <pre><code>1 (Test)
  2 ({3 (A)}{4 (B)}{5 (C)})
  100 (AAA{101 (X){102 (Y)}{103 (Z)})
  </code></pre>
  
  <p>And after that I will need to split it again for the nested brackets.</p>