摘要: regexp是go支持正则表达式的相关内置模块。 一、引入 import "regexp" 二、使用 2.1 regexp.MatchString 使用正则表达式匹配字符串 match, _ := regexp.MatchString("H(.*)!", "Hello world!") fmt.Pr 阅读全文
posted @ 2020-08-21 11:27 aaronthon 阅读(1657) 评论(0) 推荐(0) 编辑