Variable: hpath:url-regexp2

hpath:url-regexp2 is a variable defined in hpath.el.

Value

"<?\\(URL[:=]\\|[^/@]\\|\\)\\(\\(\\)\\(\\)\\(\\(www\\|s?ftp\\|telnet\\|news\\|nntp\\)\\.[^/:@        \n
\"`'|]+\\):?\\([0-9]+\\)?\\([/~]\\([^][     \n
\"`'|(){}<>]+[^][     \n
\"`'|(){}<>.,?#!*]\\)*\\)?\\)>?"

Documentation

Regular expression which matches a Url in a string or buffer.

Its match groupings and their names are:
  1 = hpath:url-keyword-grpn = optional URL: or URL= literal
  2 = hpath:url-grpn = the whole URL
  3 = unused = for compatibility with hpath:url-regexp
  4 = unused = for compatibility with hpath:url-regexp
  5 = hpath:sitename-grpn = URL site to connect to
  6 = hpath:hostname-grpn = hostname used to determine the access
      protocol, e.g. ftp.domain.com
  7 = hpath:portnumber-grpn = optional port number to use
  8 = hpath:pathname-grpn = optional pathname to access.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defvar hpath:url-regexp2
  (concat
   "<?\\(URL[:=]\\|[^/@]\\|\\)\\(\\(\\)\\(\\)\\("
   hpath:url-hostnames-regexp
   "\\.[^/:@ \t\n\r\"`'|]+\\):?\\([0-9]+\\)?\\([/~]\\([^\]\[ \t\n\r\"`'|(){}<>]+[^\]\[ \t\n\r\"`'|(){}<>.,?#!*]\\)*\\)?\\)>?")
  "Regular expression which matches a Url in a string or buffer.
Its match groupings and their names are:
  1 = hpath:url-keyword-grpn = optional `URL:' or `URL=' literal
  2 = hpath:url-grpn         = the whole URL
  3 = unused                 = for compatibility with hpath:url-regexp
  4 = unused                 = for compatibility with hpath:url-regexp
  5 = hpath:sitename-grpn    = URL site to connect to
  6 = hpath:hostname-grpn = hostname used to determine the access
      protocol, e.g. ftp.domain.com
  7 = hpath:portnumber-grpn  = optional port number to use
  8 = hpath:pathname-grpn    = optional pathname to access.")