Looking for an extensive set of email addresses in both good and wrong format for regular expressions testing

StackOverflow https://stackoverflow.com/questions/9334270

  •  30-04-2021
  •  | 
  •  

Question

I would like to test a couple of regular expressions for email address validation, but I don't want to make up the testing set of addresses myself. I think I would not cover all the possibilities very well just by myself, and I feel like this is the "reinventing the wheel" situation, as this had to be done many times before.

Most of my search results yield resources about writing the regular expressions themselves (which I don't need), but I am unable to find any "testing data" for these regular expressions.

Do some databases or collections of such testing data exist at all, and not only for email addresses?

And if yes, are these available online?

Était-ce utile?

La solution

Here are a couple pages with some email addresses:

But I'd recommend reading at least the first 3 answers to this question: How to use a regular expression to validate an email addresses?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top