regex.go 214 B

123456789101112
  1. package main
  2. import "regexp"
  3. func main() {
  4. println(1 << 20)
  5. str := "dgvdagdbd\tkkageg:feg\""
  6. println(str)
  7. regex2, _ := regexp.Compile("[\"\\/]")
  8. str2 := regex2.ReplaceAllString(str, "\\$0")
  9. println(str2)
  10. }