title: Regex to check if whitespace present?
body: <p>Seems pretty simple, but cannot figure out why this javascript code isn't working returning false, when expecting true) - I'm guessing it has got to do something with the escape characters? Could someone please help me write a JS block that will return true if whitespace present?</p>
  
  <pre><code>var inValid = new RegExp("[\s]");
  var value = "test space";
  var k = inValid.test(value);
  alert(k);
  </code></pre>