How can I validate a name in Javascript using Regex? I tried with /^([a-zA-Z.]){3,50}$/ this validation expression but it does not completely satisfy my needs.
Valid Names can be (Total Length between 3 and 50)
- John
- Antony Simon
- Kevin M D
- James.K
Invalid names can be
- 121212
- aaa12212
- 3434fgfgf
- James..
- James .
Please help.