Add regex checker for alias file and improve speed for network and alias replacement. Thanks to jcputter for the report.