title: string break for java
body: <p>I am coding in java and  I have string like this <strong>[A⋈ (B⋈C)]⋈[D⋈ (E⋈F)]</strong> I want to split it in a way that I get (B⋈C) in different sub string and (E⋈F) in different string.How can I do that?</p>
  
  <p>I try to do it by regex and string split but it do not work for me.</p>
  
  <pre><code>String[] items = str.split(Pattern.quote("(?=-)"));
  ArrayList&lt;String&gt; itemList = new ArrayList&lt;String&gt;();
  
  for (String item : items) 
  {
     itemList.add(item);
  }
  System.out.println(itemList);
  </code></pre>