Class: Regxlib::Email

Inherits:
Object
  • Object
show all
Defined in:
lib/regxlib.rb

Overview

START

Regxlib::Email ###########

Class Method Summary collapse

Class Method Details

.co_ukObject

Regxlib::Email.co.uk



87
88
89
# File 'lib/regxlib.rb', line 87

def self.co_uk
  /\A[\w+-.]+@[a-z\d\-.]+\.[c]+[o]+\.[u]+[k]+\z/i
end

.co_uk_comObject

Regxlib::Email.co_uk_com



77
78
79
# File 'lib/regxlib.rb', line 77

def self.co_uk_com
  /\A[\w+-.]+@[a-z\d\-.]+\.([c]+[o]+\.[u]+[k]|[c]+[o]+[m])+\z/i
end

.comObject

Regxlib::Email.com



82
83
84
# File 'lib/regxlib.rb', line 82

def self.com
  /\A[\w+-.]+@[a-z\d\-.]+\.[c]+[o]+[m]+\z/i
end

.eduObject

Regxlib::Email.edu



72
73
74
# File 'lib/regxlib.rb', line 72

def self.edu
  /\A[\w+-.]+@[a-z\d\-.]+\.[e]+[d]+[u]+\z/i
end

.multiObject

Regxlib::Email.multi



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/regxlib.rb', line 37

def self.multi
  /\A[\w+-.]+@[a-z\d\-.]+\.(
  [i]+[o]
  |[c]+[o]+[m]
  |[m]+[a]+[i]+[l]
  |[c]+[o]+\.[a]+[u]
  |[c]+[o]+\.[u]+[k]
  |[c]+[o]+\.[u]+[s]
  |[c]+[o]+\.[b]+[r]
  |[c]+[o]+\.[d]+[k]
  |[c]+[o]+\.[e]+[u]
  |[c]+[o]+\.[f]+[i]
  |[c]+[o]+\.[f]+[r]
  |[c]+[o]+\.[d]+[e]
  |[c]+[o]+\.[g]+[r]
  |[c]+[o]+\.[i]+[n]
  |[c]+[o]+\.[i]+[e]
  |[c]+[o]+\.[i]+[t]
  |[c]+[o]+\.[n]+[z]
  |[c]+[o]+\.[n]+[o]
  |[c]+[o]+\.[e]+[s]
  |[c]+[o]+\.[s]+[e]
  )+\z/i
end

.orgObject

Regxlib::Email.org



67
68
69
# File 'lib/regxlib.rb', line 67

def self.org
  /\A[\w+-.]+@[a-z\d\-.]+\.[o]+[r]+[g]+\z/i
end

.standardObject

Regxlib::Email.standard



62
63
64
# File 'lib/regxlib.rb', line 62

def self.standard
  /\A[\w+-.]+@[a-z\d\-.]+\.[a-z]+\z/i
end