Test, validate and match regular expressions
Matches and captures the domain name from a URL, with an optional http:// or https:// protocol prefix and optional www. prefix. The captured group 1 contains the domain characters (letters, digits, underscores, colons, dots, hyphens), followed by an optional trailing slash. With global and multiline flags, it can extract domains from multiple lines of URLs at once — useful for parsing log files, cleaning link lists, or extracting hostnames from text.