メールアドレスのバリデーション by Ruby - ruby-tips-sample_code-Motivation Driven Development

screenshot

javascriptによる簡易regexでは対応できないケースがでてしまったので、いろいろ参考にしつつruby版を作った。require 'resolv'require 'pp'class MailAddressValidatordef self.validate(address)return validate_by_regex(address) && validate_by_MX(address...

http://motivation.drivendevelopment.jp/2009-04-03-1.html

コメント欄がないそうなのでここで。 "validaotr"

http://b.hatena.ne.jp/entry/http://motivation.drivendevelopment.jp/2009-04-03-1.html