Build, test, and debug regular expressions
This regex matches URLs beginning with http:// or https:// that contain a domain with a dot and a trailing slash, using ungreedy quantifiers to stop at the first slash. Alternatively, it matches localhost addresses that must include a port number at the end of a line (e.g., localhost:3000), with an optional http:// prefix. It is useful for extracting or validating web addresses in text, including local development server URLs.