Show HN: Email Verifier Written in Go

(github.com)

2 points | by hsnice16 13 hours ago ago

2 comments

  • zufallsheld 10 hours ago ago

    Are you sure this is the best regex for validation?

    There is this regex: https://emailregex.com/

    Seeing the amount of code let's me think of left-pad. Minimal code that should just be part of your own project instead of using a third party dependency.

    Also obligatory: don't validate emails, just send the user an email and make them confirm by clicking a link in the mail.

    • hsnice16 2 hours ago ago

      No, this is not the best regex. This is just to set up the initial phase of the project, in the future it will be improved.