lib/scrapifier/support.rb
def sf_uri_regex
      { uri: %r{\b(
               (((ht|f)tp[s]?://)|([a-z0-9]+\.))+
               (?<!@)
               ([a-z0-9\_\-]+)
               (\.[a-z]+)+
               ([\?/\:][a-z0-9_=%&@\?\./\-\:\#\(\)]+)?
               /?
             )}ix,
        protocol: /((ht|f)tp[s]?)/i }
    end
# Build a hash with the URI regexes.
Build a hash with the URI regexes.
Build a hash with the URI regexes .
def sf_uri_regex
      { uri: %r{\b(
               (((ht|f)tp[s]?://)|([a-z0-9]+\.))+
               (?<!@)
               ([a-z0-9\_\-]+)
               (\.[a-z]+)+
               ([\?/\:][a-z0-9_=%&@\?\./\-\:\#\(\)]+)?
               /?
             )}ix,
        protocol: /((ht|f)tp[s]?)/i }
    end
def sf_uri_regex { uri : %r{ \b (
               (((ht|f)tp[s]?://)|([a-z0-9]+ \. ))+
               (?<!@)
               ([a-z0-9 \_ \- ]+)
               ( \. [a-z]+)+
               ([ \? / \: ][a-z0-9_=%&@ \? \. / \- \: \# \( \) ]+)?
               /?
             ) }ix , protocol : / ((ht|f)tp[s]?) /i } end
Build a hash with the URI regexes.
Build a hash with the URI regexes .