Ruby Email validation with regex

前端 未结 9 902
有刺的猬
有刺的猬 2020-12-03 00:21

I have a large list of emails I am running through. A lot of the emails have typos. I am trying to build a string that will check valid emails.

this is what I have

9条回答
  •  执笔经年
    2020-12-03 01:09

    This has been built into the standard library since at least 2.2.1

    URI::MailTo::EMAIL_REGEXP
    

提交回复
热议问题