Test, validate and match regular expressions
This regular expression extracts an IPv4 address and an optional port number located between a double slash (`//`) and a single slash (`/`), such as the host component of a URL. It uses lookbehind and lookahead assertions to isolate the IP address and port without capturing the surrounding slashes. It is ideal for parsing network endpoints from URLs in log files, proxy configurations, or web scraping tasks.