Sha256: bc13141bf5a63bf88d3adb375556946e12c3705b0c08e9f1729b88560255e3c8

Contents?: true

Size: 249 Bytes

Versions: 44

Compression:

Stored size: 249 Bytes

Contents

module Typus
  module Regex

    Email = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/

    Domain = /^(((?:[-a-z0-9]+\.)+[a-z]{2,}))/

    Url = /(^$)|(^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$)/ix

  end
end

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
brainsome_typus-4.0.0.beta13 lib/typus/regex.rb
brainsome_typus-4.0.0.beta12 lib/typus/regex.rb
brainsome_typus-4.0.0.beta11 lib/typus/regex.rb
brainsome_typus-4.0.0.beta10 lib/typus/regex.rb
brainsome_typus-4.0.0.beta9 lib/typus/regex.rb
brainsome_typus-4.0.0.beta8 lib/typus/regex.rb
brainsome_typus-4.0.0.beta7 lib/typus/regex.rb
typus-rails4-4.0.0.beta6 lib/typus/regex.rb
brainsome_typus-4.0.0.beta6 lib/typus/regex.rb
brainsome_typus-4.0.0.beta5 lib/typus/regex.rb
brainsome_typus-4.0.0.beta4 lib/typus/regex.rb
brainsome_typus-4.0.0.beta3 lib/typus/regex.rb
brainsome_typus-4.0.0.beta2 lib/typus/regex.rb
brainsome_typus-4.0.0.beta1 lib/typus/regex.rb
typus-3.1.10 lib/typus/regex.rb
typus-3.1.9 lib/typus/regex.rb
typus-3.1.8 lib/typus/regex.rb
typus-3.1.7 lib/typus/regex.rb
typus-3.1.6 lib/typus/regex.rb
typus-3.1.5 lib/typus/regex.rb