Test, validate and match regular expressions
Parses URLs into named capture groups: Protocol (optional http/https://), Host (optional www prefix plus name), Domain (1-10 word characters), and Query (everything after the domain, e.g. path and query string). Designed with multiline/global flags for scanning text with multiple URLs. Note: unescaped dots make it slightly permissive, matching any character where literal dots are likely intended.