Test, validate and match regular expressions
This regex matches reverse DNS lookup domains for IPv4 addresses, such as 1.2.3.4.in-addr.arpa. It captures each of the four decimal octets into separate groups, allowing you to easily reconstruct the original IP address. It is commonly used in network utilities, DNS parsers, and log analysis tools to process PTR records.