I need to validate alpha characters (in a request, node.js) and what i used was:
/[a-zA-Z]+/.test(input)
BUT when a value null was passed, then it was validated OK (regexp returns TRUE) example:
/[a-zA-Z]+/.test(null) // <--- this returns true :(
Somebody can explain me this? i need to avoid nulls, thanks!