title: How to split() string with brackets in Javascript
body: <p>i just want to make </p>
  
  <pre><code>str = "a(bcde(dw)d)e"
  </code></pre>
  
  <p>to</p>
  
  <pre><code>arr = {"a", "(bcde)", "(dw)", "(d)", "e"}
  </code></pre>
  
  <p>What regEx can i use in <code>str.split()</code>?</p>
  
  <p>PS: Explanations || helpful links welcome.</p>
  
  <p>Examples:</p>
  
  <pre><code>s: "a(bcdefghijkl(mno)p)q" --&gt; [ 'a', '(bcdefghijkl)', '(mno)', '(p)', 'q' ]
  s: "abc(cba)ab(bac)c" --&gt; [ 'abc', '(cba)', 'ab', '(bac)', 'c' ]
  </code></pre>