Skip to content

Instantly share code, notes, and snippets.

@Osiyuks
Created November 7, 2019 13:56
Show Gist options
  • Select an option

  • Save Osiyuks/c239cd6dd07570379b8b89a5be0292e2 to your computer and use it in GitHub Desktop.

Select an option

Save Osiyuks/c239cd6dd07570379b8b89a5be0292e2 to your computer and use it in GitHub Desktop.
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