Test, validate and match regular expressions
This regex matches strings formatted as IPv4 addresses while excluding common private and loopback IP ranges (10.x.x.x, 127.x.x.x, 192.168.x.x, and 172.16-31.x.x). It uses negative lookbehind assertions to fail the match if it starts with these specific prefixes. It is commonly used in log parsing or security analysis to identify public IP addresses.