Build, test, and debug regular expressions
This regular expression matches a URL or domain name by capturing optional protocol, subdomains, the root domain, and path segments. It is useful for extracting web addresses or parsing components like the hostname and file path from URLs in text. It handles optional schemes (e.g., http://) and paths, making it versatile for general web link matching.