Quick and dirty regex fix for validation. Allows regex in port and period