0

I am trying to create a RegEx expression so it matches an email. I created that one:

.+@{1}[a-z]{3,}.{1}(\bcom\b|\bes\b)

Conditions:

  • Any character followed by just ONE @
  • The email domain lenght must have at least 3 characters followed by a point
  • The TLD of the domain must be exclusively ".com" or ".es"

The issue here is that when I try to input for example, "example@@gmail.com" it matches. It just have to match "example@gmail.com" with just one @

0 Answers0