Test, validate and match regular expressions
This regex validates AWS Amazon Resource Names (ARNs) by matching the standard format: arn:partition:service:region:account-id:resource. It supports partitions like aws, aws-cn, and aws-us-gov, allows wildcards for region or account, and handles both resource IDs and paths. Useful for verifying ARN inputs in cloud automation, IAM policies, or configuration files.