I'm validating an email form and for the name input I wanna make sure the user didn't enter in punctuation, or numbers in the field. Just letters a-z upper-cased, and lower-cased.
This doesn't seem to work:
/(?![\._])\p{P}|[0-9]/g
I'm validating an email form and for the name input I wanna make sure the user didn't enter in punctuation, or numbers in the field. Just letters a-z upper-cased, and lower-cased.
This doesn't seem to work:
/(?![\._])\p{P}|[0-9]/g
You can just use
/[a-zA-Z]/g
To match a valid name
Hope this helps