正则摘要,显示在meta的description中 2021.11.20 2023.2.28 分类 15 1 分钟reg, _ := regexp.Compile(`\s+`) r := reg.ReplaceAll(resBody, []byte("")) compile string to regexp, then replace all作者:王书硕链接:https://wss.cool/posts/后端/go/正则/许可:CC BY-NC-SA 4.0