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
typus-3.1.0.rc4 lib/typus/regex.rb
typus-3.1.0.rc3 lib/typus/regex.rb
typus-3.1.0.rc2 lib/typus/regex.rb
typus-3.1.0.rc1 lib/typus/regex.rb