```
var regx = /^[A-Za-z0-9 _.-]+$/;

if(regx.test($($input).val()))
  alert ("correct");
else
  alert('Incorrect!');
}

```

If I enter in input, character @ or # works? for me this works, but I think that must be incorrect...

Why does not works fine?