originaluko / haveibeenpwned

Identify pwned accounts and passwords via the "Have I been pwned?" (https://haveibeenpwned.com) API.
MIT License
57 stars 18 forks source link

emailaddress regex #4

Closed MayaK06 closed 5 years ago

MayaK06 commented 5 years ago

very nice thank you ! - one small thing you may want to change in the regex parsing -EmailAddress is to include numbers in the email domain name - the current regex does not allow it . example @company123.com would not work.

sid351 commented 5 years ago

There is a way to check email addresses with PowerShell that doesn't use regex. Here are a couple of references:

https://stackoverflow.com/questions/48253743/powershell-to-validate-email-addresses

https://herringsfishbait.com/2016/07/22/powershell-check-if-an-email-address-is-valid/