Test, validate and match regular expressions
Matches valid IPv4 addresses where each octet ranges from 0 to 255. It defines the first octet pattern in a capturing group and reuses it via a subroutine call (?1) for the remaining three octets. Useful for validating IP address input in forms, parsing network logs, or filtering IP addresses from text.