title: How to replace all html tag with empty string in golang
body: <p>I'm trying to replace all html tag such as <code>&lt;div&gt; &lt;/div&gt;</code> ... on empty string ( " " ) in golang with regex pattern <code>^[^.\/]*$/g</code> to match all close tag. ex : <code>&lt;/div&gt;</code></p>
  
  <p>My solution:</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "regexp"
  )
  
  const Template = `^[^.\/]*$/g`
  
  func main() {
      r := regexp.MustCompile(Template)
      s := "afsdf4534534!@@!!#&lt;div&gt;345345afsdf4534534!@@!!#&lt;/div&gt;"
  
      res := r.ReplaceAllString(s, "")
      fmt.Println(res)
  }
  </code></pre>
  
  <p>But output the same source string. What's wrong? Please help. Thank</p>
  
  <p>Expect Result should: <code>"afsdf4534534!@@!!#345345afsdf4534534!@@!!#"</code></p>