reg := regexp.MustCompile("【(.*?)】")
//userInfo=姓名:【AAA姓名】证件类型:【BBB身份证】证件号码:【122456789458】tempData = reg.FindAllStringSubmatch(userInfo, -1)for k, v := range tempData {if k == 0 {tempReleaseUser.Name = v[1]//AAA姓名} else if k == 1 {tempReleaseUser.CertTypeStr = v[1]//BBB身份证} else if k == 2 {tempReleaseUser.CertNumber = v[1]//122456789458}}