title: How to create loop with regular expression?
body: <p>Honestly, I think I should first ask for your help with syntax of this question first.</p>
  
  <p>But please if you can understand what I mean edit the title with suitable one.</p>
  
  <p>Is there a way to make pattern that can split a text like this.</p>
  
  <pre><code>{{START}}
      {{START}}
          {{START}}
              {{START}}
              {{END}}
          {{END}}
      {{END}}
  {{END}}
  </code></pre>
  
  <p>So every {{START}} matches its {{END}} from inside first to outside last!</p>
  
  <p>And if I cannot do that with regex only. What about doing it using PHP?</p>
  
  <p>Thank you up front.</p>