Test, validate and match regular expressions
Parses a URL into its individual components using capture groups: an optional protocol (http, https, ftp, ftps, ws, wss, or sftp), a hostname or 'localhost', optional port number, directory path segments, filename, query string, and fragment identifier. With global and multiline flags, it can match and decompose multiple URLs across lines of text. Commonly used in JavaScript for URL validation, link analysis, or extracting specific URL parts for further processing.