Test, validate and match regular expressions
This regular expression matches URLs and domains, accommodating optional schemes, subdomains, and paths. It handles internationalized domain names (IDNs) by loosely accepting any non-whitespace characters that aren't URI delimiters. It is useful for extracting or validating loosely formatted web addresses and hostnames within a larger text.