Test, validate and match regular expressions
Parses HTTP and HTTPS URLs into component capture groups: scheme, host, optional port, path, query string, and fragment identifier. Useful for URL validation and extracting individual URL segments for further processing, such as routing or link analysis. Anchors at both ends ensure the entire string matches a valid URL structure.