Build, test, and debug regular expressions
Matches Amazon EC2 public DNS hostnames of the form ec2-<IPv4>.<region>.<az>.compute.amazonaws.com, where the IPv4 address is a valid dotted decimal and the region conforms to AWS naming conventions (e.g., us-east-1, eu-west-2). Useful for extracting or validating EC2 instance endpoint names from logs, configuration files, or monitoring data.