How to allow only one dot in name validation

9/18/2019 2:21:32 PM

sushmitha R

3 Answers

New Answer


You used javascript and java in tags, but they are very different languages so if you expect any detail or example then please clarify which one you meant.


What is the meaning of "name validation". I am thinking, so validation is checking, so it has to be checking of names. But which names?


Regular way is to count the number of '.' (dot) or Use regular expression to match the input.