title: String Split PHP PREG_MATCH
body: <p>I have a string :</p>
  
  <pre><code>$productList="
  Saluran Dua(Bothway)-(TAN007);
  Memo-(T-Memo);
  7-Pak FBIP  R-100.000-(F1R100);
  FBIP LOKAL 350 Mnt  (R/N/M)-(FL350);
  FBIP SLJJ 30+300 Mnt (R)-(FJ30R)
  ";
  </code></pre>
  
  <p>i want the result like this:</p>
  
  <pre><code>Array(
  [0]=&gt;Saluran Dua(Bothway)
  [1]=&gt;Memo
  [2]=&gt;7-Pak FBIP  R-100.000
  [3]=&gt;FBIP LOKAL 350 Mnt  (R/N/M)
  [4]=&gt;FBIP SLJJ 30+300 Mnt (R)
  );
  </code></pre>
  
  <p>I used :</p>
  
  <pre><code>$separator = '#\;([a-zA-Z/0-9()\- ]*)\-#';
  preg_match_all($separator, $productList, $match);
  $value=$match[1];
  </code></pre>
  
  <p>but the result:</p>
  
  <pre><code>Array(
  [0] =&gt; Saluran Dua Arah(BothWay)
  [1] =&gt; Memo-(T
  [2] =&gt; 7-Pak FBIP  R
  [3] =&gt; FBIP LOKAL 350 Mnt  (R/N/M)
  );
  </code></pre>
  
  <p>i hope someone can help me..</p>