Module: Emarsys::Broadcast::Email

Defined in:
lib/emarsys/broadcast/email.rb

Constant Summary collapse

REGEX =
/\A(|(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6})\z/i

Class Method Summary collapse

Class Method Details

.validate(email) ⇒ Object



6
7
8
# File 'lib/emarsys/broadcast/email.rb', line 6

def self.validate(email)
  email =~ REGEX
end