title: Unable to delete the first value in input
body: <pre><code>var check = /^[^-\s]+[a-zA-Z\s]*$/;
  </code></pre>
  
  <p>My html:</p>
  
  <pre><code>&lt;input type="text" onChange={(e) =&gt; this.onTextChange(e)} required/&gt; 
  </code></pre>
  
  <p>Function:</p>
  
  <pre><code>onTextChange(event) {
    let fieldVal = event.target.value;var check = /^\S+[a-zA-Z\s]*$/;
    if(check.test(fieldVal)){
  
    } else{
  
    }
  }
  </code></pre>
  
  <p>If I use this in function to restrict space at beginning means it is working fine. But while entering backspace first character is not removing. Can any one help?</p>