I can't find out why my regex is accepting some values.
const regexNome = /([A-z]+\s?)+/g;
It's accepting values like "jhon 123" and I want only names (it's for a name input validation).
Can you help me?
I can't find out why my regex is accepting some values.
const regexNome = /([A-z]+\s?)+/g;
It's accepting values like "jhon 123" and I want only names (it's for a name input validation).
Can you help me?