Test, validate and match regular expressions
This regex matches two forms of URLs: those using alphanumeric domain names ending in .com, .net, or .org (including an optional subdomain), followed by any path; and those using IPv4 addresses with an optional port and path. It is useful for extracting web addresses from plain text, logs, or user input, capturing both human-readable domains and raw IP-based links.