Test, validate and match regular expressions
This regex matches URLs with optional scheme (e.g., http, https, ftp), userinfo, domain, path, query string, and fragment. It also supports www-prefixed or user@-prefixed domains. Use cases include extracting or validating hyperlinks from text, web scraping, and link detection.