Updating the RegEx to escape the '.' in hostname