title: Using multiple delimiters for .split in Java
body: <p>Right now my code only separates words by white space, but I also want to separate by '.' and "," too. Here is my current code:</p>
  
  <pre><code>for (String words : input.split("\\s+"))
  </code></pre>
  
  <p>For example, if the user entered "bread,milk,eggs" or "Um...awkss" It would consider that one word, and I want each word to be it's own word.</p>
  
  <p>And while I'm here, I can't get</p>
  
  <pre><code>input.isAlpha() 
  </code></pre>
  
  <p>to work either.</p>