Test, validate and match regular expressions
This PCRE regex validates IPv4 addresses by using recursion to match four octets. The first group captures an octet (0-255), and `(?1)` recurses this subpattern for the remaining three octets separated by dots. The anchors ensure the entire string is validated, making it ideal for strict IP address verification.