Sha256: 3dd5b8d532508c23b61c3b41fd133e3eb7c012355ba3d1dfaffbe9ea3cd9c386
Contents?: true
Size: 350 Bytes
Versions: 2
Compression:
Stored size: 350 Bytes
Contents
module StringAwesome module AwesomeRegexes SA_REGEXES = { accent: /[^\x00-\x7F]/n, url: /\b((((ht|f)tp[s]?:\/\/)|([a-z0-9]+\.))+(?<!@)([a-z0-9\_\-]+)(\.[a-z]+)+([\?\/\:][a-z0-9_=%&@\?\.\/\-\:\#\(\)]+)?\/?)/i, protocol: /(ht|f)tp[s]?/i, tweet: /(((^[@#])|([^a-z0-9\W]|\s)([@|#]))([a-z0-9\_]+))/i } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
string_awesome-0.2.5 | lib/string_awesome/awesome_regexes.rb |
string_awesome-0.2.4 | lib/string_awesome/awesome_regexes.rb |