I have a job title field in a form, where I want it to allow a response which contains only letters and numbers, where at least one letter is required and any numbers are optional. I am using the following pattern in my input tag:
pattern="\w*[a-zA-Z]\w*"
This pattern checks out on the RegEx testers I have tried to use, yet when I provide an answer on my form of "Manager 2" it will not let me continue. Is there something different about how browsers interpret


pattern="[0-9\s]*[a-zA-Z][a-zA-Z0-9\s]*".Manager 2contains a space and then2but your pattern requires at least 2 chars. Try\w*[a-zA-Z]\w*(?: \w+)*