title: Java Regex all non word characters except whitespace
body: <p>This has Probably been asked before, but i want to split a string at every non word character except the white space in java. i do not have experience with regex in general and the wiki doesn't really help.</p>
  
  <p>I've tried it with this: <code>"[\\W][^\\s]"</code> but that did not help.</p>
  
  <p><strong>Edit</strong>: how the String is read out of the file</p>
  
  <pre><code>StringBuilder sb = new StringBuilder();
  
          Scanner sc = new Scanner(getResources().openRawResource(R.raw.answers));
  
          try
          {
              while (sc.hasNext())
              {
                  sb.append(sc.next());
              }
          } finally
          {
              sc.close();
          }
  </code></pre>