I have been using a regex code for fullnames in JavaScript and the pattern looks like this : /(\w)\s(\w)/
. The problem is that this pattern accepts numbers which I don't won't in the users fullname. So,I need a pattern that accepts a space after the first name and accepts a second name after the space and has a limit of 30 characters but does not accept numbers. I don't know how to create a regex pattern so any help is appreciated.
This is what the code looks like now:
if(name.match(/(\w)\s(\w)/)){
flagOne = true;
}