Build, test, and debug regular expressions
This regex matches URLs, including those with or without the protocol (http/https), domains with at least one dot, optional port numbers, and optional path segments. It requires the URL to be preceded by whitespace or the start of the string, making it useful for extracting links from plain text. It is case-insensitive and operates globally across multiline input, commonly used for link detection and validation in web content.