VLAN ID Validation Regex
Please use first segment or second depending on the Extended VLAN usage such as "1-256" or "1-4096" :
^(25[0-6]|(2[0-4]|1\d|[1-9])\d|[1-9])$
^(409[0-6]|(40[0-8]|[1-3]\d\d|[1-9]\d|[1-9])\d|[1-9])$