Test, validate and match regular expressions
This regex validates a comma-separated list of local port definitions for Windows Advanced Firewall (advfirewall). Each entry can be a numeric port from 0 to 65535, a range such as 80-90, or one of the keywords any, rpc, rpc-epmap, teredo, or iphttps. Matching is case-insensitive. It is useful for validating user input in firewall configuration forms, scripts, or parsing existing rules.