title: Java String.split : Trouble using \\W as non word delimiter
body: <p>Going by the suggestion provided <a href="https://stackoverflow.com/questions/5993779/java-use-split-with-multiple-delimiters">here</a>
  I tried using \\W as a delimiter for non word character in string.split function of java. </p>
  
  <pre><code>String str = "id-INT, name-STRING,";
  </code></pre>
  
  <p>This looks like a really simple string. I wanted to extract just the words from this string. The length of the array that I get is 5 whereas it should be 4. There is an empty string at position right after INT. I don't understand why the space in there is not being considered as non word</p>