package tools import ( "log" "testing" ) func TestReplaceStringByRegex(t *testing.T) { orgStr := `

直接点击立即注册登陆使用

` dstStr, err := ReplaceStringByRegex(orgStr, "<[^a>]+>", "") log.Println(dstStr, err) }