title: Regex pattern to check if anything other than space character exists
body: <p>I am trying to create a pattern matcher for anything other than space, that is it should return true if I find anything other than <strong>space</strong> character, in the entry. I have tried using  </p>
  
  <pre><code>String s = "[^ \s]" 
  </code></pre>
  
  <p>as the pattern matcher but it complains as error. What is the correct string to use to generate the pattern matcher?</p>