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 esca
var inValid = /^/\s/; var value = "test value"; var k = inValid.test(value); alert(k);