title: Using .split() for multiple characters in Java
body: <p>I'm trying to split an input by <code>".,:;()[]"'\/!? "</code> chars and add the words to a list. I've tried <code>.split("\\W+?")</code> and <code>.split("\\W")</code>, but both of them are returning empty elements in the list.</p>
  
  <p>Additionally, I've tried <code>.split("\\W+")</code>, which returns only words without any special characters that should go along with them (for instance, if one of the input words is "C#", it writes "C" in the list). Lastly, I've also tried to put all of the special chars above into the <code>.split()</code> method: <code>.split("\\.,:;\\(\\)\\[]\"'\\\\/!\\? ")</code>, but this isn't splitting the input at all. Could anyone advise please? </p>