Test, validate and match regular expressions
Matches URLs starting with http://, https://, or www. prefix and captures the domain name along with optional path and filename components. Handles URLs with multiple path segments and supports extracting the last path component (filename) when present. Useful for parsing links to extract domain or file information from web addresses.