util_url_valid_p (public)
util_url_valid_p [ -relative ] query_url
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Check if an absolute Web URL (HTTP, HTTPS or FTP) is valid. If the 'relative' flag is set, also relative URLs are accepted. Refined regexp from https://mathiasbynens.be/demo/url-regex
- Switches:
- -relative (optional, boolean)
- Boolean. If true, Accept also relative URLs.
- Parameters:
- query_url (required)
- The URL to check.
- Returns:
- 1 if the web URL is valid, 0 otherwise.
- Authors:
- Philip Greenspun <philg@mit.edu>
- Héctor Romojaro
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- acs_tcl__util_url_valid_p