Test, validate and match regular expressions
This regular expression matches AWS EC2 instance types. It validates the combination of an instance family (such as m5, c5, t2, etc.) and its specific size (like large, 2xlarge, micro, etc.), separated by a dot. It is highly useful for configuration validation in cloud infrastructure scripts, AWS deployment automation, and user input validation in web forms that require valid EC2 instance sizes.