正则表达式怎么用

Posted on Nov 20, 2021
reg, _ := regexp.Compile(`\s+`)
r := reg.ReplaceAll(resBody, []byte(""))

compile string to regexp, then replace all