title: Use String.split() with multiple delimiters
body: <p>I need to split a string base on delimiter <code>-</code> and <code>.</code>. Below are my desired output. </p>
  
  <p><code>AA.BB-CC-DD.zip</code> -> </p>
  
  <pre><code>AA
  BB
  CC
  DD
  zip 
  </code></pre>
  
  <p>but my following code does not work.</p>
  
  <pre><code>private void getId(String pdfName){
      String[]tokens = pdfName.split("-\\.");
  }
  </code></pre>