title: Regex to split BBCode into pieces
body: <p>I have this:</p>
  
  <pre><code>str = "some html code [img]......[/img] some html code [img]......[/img]"
  </code></pre>
  
  <p>and I want to get this:</p>
  
  <pre><code>["[img]......[/img]","[img]......[/img]"]
  </code></pre>