A regex that doesnt accept 2 comma and 2 dot consecutively

Viewed 45

It only allows letters, doesn't allow other special character besides comma and dot. Doesn't allow 2 consecutively dot and comma in any part of the name . What should I add to my regex. ^[a-zA-Z]+$

0 Answers
Related