title: allow space between two word using regular expression
body: <p>I need to block special character except comma. So I am using code given below. Its is working but it is also removing space between two words. <a href="http://jsfiddle.net/QjVGV/58/" rel="nofollow">fiddle</a></p>
  
  <pre><code>var chars =/[(,\/\w)]/i;
  $('input').keyup(function(e) {
    var value = this.value;
    var char = value[value.length-1];
      if(char !== ' ' || value.length==1 || (value[value.length-2]!==' ' )){
  
    if (!chars.test(char)) {
        $(this).val(value.substring(0, value.length-1));
    }
      }
  });
  </code></pre>