update ports regexp.