Created
December 31, 2020 02:49
-
-
Save xofred/b3bc6191a4b4191d7f475279c00ff2e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# credit | |
# https://www.abstractapi.com/guides/how-to-validate-an-email-address-in-ruby | |
# valid | |
"mymail@myserver.com" =~ URI::MailTo::EMAIL_REGEXP | |
# invalid | |
"wrong" =~ URI::MailTo::EMAIL_REGEXP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment