Improved unit number/port number regex

- modified regex to only allow units and ports between 1 and 5 digits
long