Sha256: b956ed259a0dafaa7f9d12d8460db5eeb7b45c2ebea1c181df9dc32bb1300a4c

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

module StringAwesome
  module AwesomeRegexes
    SA_ACCENT_REGEX   = /[^\x00-\x7F]/n
    SA_URL_REGEX      = /\b(((ht|f)tp[s]?:\/\/)?([a-z0-9]+\.)?(?<!@)([a-z0-9\_\-]+)(\.[a-z]+)+([\?\/\:][a-z0-9_=%&@\?\.\/\-\:\#\(\)]+)?\/?)/i
    SA_PROTOCOL_REGEX = /(ht|f)tp[s]?/i
    SA_TWEET_REGEX    = /(((^[@#])|([^a-z0-9\W]|\s)([@|#]))([a-z0-9\_]+))/i
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
string_awesome-0.2.1 lib/string_awesome/awesome_regexes.rb