cm15/examples/rsssh/main.go
func getInstanceNumber(name string) string {
	re, _ := regexp.Compile(`#\d+$`)
	matches := re.FindStringSubmatch(name)
	if len(matches) == 0 {
		return ""
	}
	return matches[len(matches)-1]
}
func getInstanceNumber(name string) string {
	re, _ := regexp.Compile(`#\d+$`)
	matches := re.FindStringSubmatch(name)
	if len(matches) == 0 {
		return ""
	}
	return matches[len(matches)-1]
}
// Get the instance number of an instance in a server array. This assumes that the server array instance is not renamed
// from the default name. For example, if the instance name is "App Server #4", this will return "#4".