Variable: hpath:url-regexp
hpath:url-regexp is a variable defined in hpath.el.
Value
"<?\\(URL[:=]\\)?\\(\\([a-zA-Z][a-zA-Z]+\\)://?/?\\([^/:@ \n
\"`'|]+@\\)?\\([^/:@ \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 = hpath:protocol-grpn = access protocol
4 = hpath:username-grpn = optional username
5 = hpath:sitename-grpn = URL site to connect to
6 = unused = for compatibility with hpath:url-regexp2
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
;; WWW URL format: [URL[:=]]<protocol>:/[<user>@]<domain>[:<port>][/<path>]
;; or [URL[:=]]<protocol>://[<user>@]<domain>[:<port>][<path>]
;; or URL[:=][<user>@]<domain>[:<port>][<path>] (no protocol specified)
;; Avoid [a-z]:/path patterns since these may be disk paths on OS/2, DOS or
;; Windows.
(defvar hpath:url-regexp "<?\\(URL[:=]\\)?\\(\\([a-zA-Z][a-zA-Z]+\\)://?/?\\([^/:@ \t\n\r\"`'|]+@\\)?\\([^/:@ \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 = hpath:protocol-grpn = access protocol
4 = hpath:username-grpn = optional username
5 = hpath:sitename-grpn = URL site to connect to
6 = unused = for compatibility with hpath:url-regexp2
7 = hpath:portnumber-grpn = optional port number to use
8 = hpath:pathname-grpn = optional pathname to access.")