Test, validate and match regular expressions
Validates a string representing a list of TCP/UDP ports or port ranges for ACL rules. It allows digits, commas, and hyphens, and requires at least one non-zero digit, preventing empty or all-zero entries. Commonly used in network configuration forms to check port syntax.