Required regex pettern like
Ex: raj.gopal-reddy or raj.reddy.gopal
Your current regex is on the right track, and I would use a negative lookahead to assert that more than three dots do not occur. Consider this pattern:
^(?!.*\..*\..*\..*\.)[A-Za-z-]*\.[A-Za-z-]*$
Copyright © 2021 Jogjafile Inc.
Your current regex is on the right track, and I would use a negative lookahead to assert that more than three dots do not occur. Consider this pattern: