Build, test, and debug regular expressions
This regular expression accurately matches valid IPv4 addresses by enforcing strict ranges for each of its four octets. It ensures that every numerical segment falls between 0 and 255, followed by either a dot or the end of a line. With the global and multiline flags, it is particularly well-suited for extracting or validating IP addresses from multi-line text files or logs.