title: RegEx for ["abc", ["123", "cba"]]
body: <p>I'm not strong in regex, so any help would be appreciated.</p>
  
  <p>I need to parse such strings:</p>
  
  <pre><code>["text", "text", ["text",["text"]],"text"]
  </code></pre>
  
  <p>And output should be (4 strings):</p>
  
  <pre><code>text, text, ["text",["text"]], text
  </code></pre>
  
  <p>I've tried this pattern <code>(\\[[^\\[,^\\]]*\\])|(\"([^\"]*)\")</code>:</p>
  
  <pre><code>String data="\"aa\", \"aaa\", [\"bb\", [\"1\",\"2\"]], [cc]";
  Pattern p=Pattern.compile("(\\[[^\\[,^\\]]*\\])|(\"([^\"]*)\")");
  </code></pre>
  
  <p>But output is (quotes themselves in output are not so critical):</p>
  
  <pre><code>"aa", "aaa", "bb", "1", "2", [cc]
  </code></pre>
  
  <p>How to improve my regex?</p>