title: Delimiter pattern that ignores anything but letters and numbers
body: <p>I have looked everywhere on Google and this website for a delimiter pattern that ignores punctuations (,./?>&lt;;:'"[{]}-_=+()*&amp;^%$#@!) and only accepts numbers and words. </p>
  
  <p>I have tried using:</p>
  
  <pre><code>Scanner fileScanner = new Scanner(new File("File.txt")).useDelimiter("[.,:;()?!\" \t]+~\\s");
  </code></pre>
  
  <p>and </p>
  
  <pre><code>      Scanner fileScanner = new Scanner(new File("File.txt")).useDelimiter("[ ,!?.]+");
  </code></pre>
  
  <p>but the first one gives me a NoSuchElementException and the second one doesn't give me the result I need. What should I use?</p>