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