Created
November 7, 2019 13:56
-
-
Save Osiyuks/c239cd6dd07570379b8b89a5be0292e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| case | |
| when net.reg_domain(lower(email)) is null then false | |
| when regexp_contains(lower(email), "^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])$") then true | |
| else false | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment