exportfunctionvalidateHost(value:string){// Thanks to http://stackoverflow.com/a/106223constHOST_REGEXP=newRegExp('^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$')returnHOST_REGEXP.test(value)}