Hello a question how could I validate a text field which is name and does not accept special characters or numbers and to check | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello a question how could I validate a text field which is name and does not accept special characters or numbers and to check

Hello a question how could I validate a text field which is name and does not accept special characters or numbers and to check if it is a valid name and not a dddfs or shsbs something like that. Please someone tell me how it can be done is for a project.

31st Jul 2020, 5:11 PM
123456
123456 - avatar
1 Answer
0
You can use regex and pattern for this and avoid most invalid input, but you will never be able to check, if it is a real name unless you don't validate the input with a names database.
1st Aug 2020, 1:37 PM
Sandra Meyer
Sandra Meyer - avatar