title: Java: regex to find outer square brackets pairs
body: <p>I would like to find the content of all the outer square brackets pairs in a string.</p>
  
  <p>If an outer pair has an inner pair then it should not be matched separately.</p>
  
  <p>For example string: <code>[abc][123][cde[456[aq[]1q1]]]</code> results should be:</p>
  
  <ul>
  <li>abc</li>
  <li>123</li>
  <li>cde[456[aq[]1q1]]</li>
  </ul>
  
  <p>Any help will be highly appreciated...</p>