Is there a way where I can find if any of these strings are entered. I want to see if the user entered "Mr", "Miss", "Mrs" or "Ms".
I have tried /^(Miss|Mr|Mrs|Ms)$/
but to no avail.
The context is that I have a text box that users should enter their title into.
I want users to only Enter "Mr", "Miss", "Mrs", and "Ms". If they enter anything else, throw an error.