Class: Regxlib::Email
- Inherits:
-
Object
- Object
- Regxlib::Email
- Defined in:
- lib/regxlib.rb
Overview
- START
-
Regxlib::Email ###########
Class Method Summary collapse
-
.co_uk ⇒ Object
Regxlib::Email.co.uk.
-
.co_uk_com ⇒ Object
Regxlib::Email.co_uk_com.
-
.com ⇒ Object
Regxlib::Email.com.
-
.edu ⇒ Object
Regxlib::Email.edu.
-
.multi ⇒ Object
Regxlib::Email.multi.
-
.org ⇒ Object
Regxlib::Email.org.
-
.standard ⇒ Object
Regxlib::Email.standard.
Class Method Details
.co_uk ⇒ Object
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_com ⇒ Object
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 |
.com ⇒ Object
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 |
.edu ⇒ Object
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 |
.multi ⇒ Object
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 |
.org ⇒ Object
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 |
.standard ⇒ Object
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 |