title: Javascript, Regex - I need to grab each section of a string contained in brackets
body: <p>Here's what I need in what I guess must be the right order:</p>
  <ol>
  <li>The contents of each section of the string contained in square brackets (which each must follow after the rest of the original string) need to be extracted out and stored, and the original string returned without them.</li>
  <li>If there is a recognized string followed by a colon at the start of a given extracted section, then I need that identified and removed.</li>
  <li>For what's left (comma delimited), I need it dumped into an array.</li>
  <li>Do not attempt to parse nested brackets.</li>
  </ol>
  <p>What is a good way to do this?</p>
  <p><strong>Edit:</strong> Here's an example of a string:</p>
  <blockquote>
  <p>hi, i'm a string [this: is, how] [it: works, but, there] [might be bracket, parts, without, colons   ] [[nested sections should be ignored?]]</p>
  </blockquote>
  <p><strong>Edit:</strong> Here's what might be the results:</p>
  <blockquote>
  <p>After extraction: 'hi, i'm a string'</p>
  <p>Array identified as 'this': ['is', 'how']</p>
  <p>Array identified as 'it': ['works', 'but', 'there']</p>
  <p>Array identified without a label: ['might by bracket', 'parts', 'without', 'colons']</p>
  <p>Array identified without a label: []</p>
  </blockquote>