Test, validate and match regular expressions
This regular expression matches valid IPv4 addresses, ensuring each octet falls within the range of 0 to 255. It utilizes PCRE2's relative group referencing feature (`\g<-2>`) to efficiently repeat the octet matching pattern without duplicating the logic. It is perfect for extracting, validating, or parsing IPv4 addresses in network logs, configuration files, or user input.