title: How to matches anything except space and new line?
body: <p>I have a string, I just want to match string for any character except for space and new line. What must be regular expression for this?</p>
  
  <p>I know regular expressions for anything but space i.e. <code>[^ ]+</code> and regular expression for anything but new line <code>[^\n]+</code> (I'm on Windows). I am not able to figure how to club them together.</p>