Ali M.
0
Q:

regex for letters and spaces

/* Note this works with the onkeyup function in html with js */

function lettersandSpacesOnly(input){
    var regexs = /[^a-z ]*$/gmi;
    input.value = input.value.replace(regexs, "");
  }
0
var re = /^[A-Za-z]+$/;
0

New to Communities?

Join the community