From 2c26c9e50a59b0cfec181fb0d545e6511590f97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=88=E5=AD=A3=E8=8A=B1=E4=B8=AD=E7=9A=84=E6=98=9F?= =?UTF-8?q?=E8=BE=B0?= Date: Sat, 15 Jan 2022 10:35:44 +0000 Subject: [PATCH] try to test --- count.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/count.go b/count.go index 2237248..d0d318f 100644 --- a/count.go +++ b/count.go @@ -39,7 +39,11 @@ func fas_count(sum_nex []dna) []charset { } func fas_name(old_name string) string { - // 需要 最后一个/开始,一个.结束 中间的部分 - // 正则表达式 + //needed to import string + str := + compileRegex := regexp.MustCompile("(\w+).\w+") + matchArr := compileRegex.FindStringSubmatch(str) + //needed to use the string get from the old string + fmt.Println("output content:", matchArr[len(matchArr)-1]) return old_name }