title: How to match phrase between words
body: <p>I am trying to only capture <strong>user-context</strong> from the code block below. So in a nutshell I want everything between repo_ and _tag Please send examples. </p>
  
  <pre><code>package main
  
  import (
      "regexp"
      "fmt"
  )
  
  func main() {
      var re = regexp.MustCompile(`repo_(.*)_tag`)
      var str = `#gitflow
  variable "repo_user-context_tag" {
    default = "blah"
  }
  
  #gitflow
  variable "repo_user-office_tag" {
    default = "blah"
  }
  `
  
      for _, match := range re.FindAllString(str, -1) {
          fmt.Println(match)
      }
  }
  </code></pre>
  
  <p>Output:
  repo_user-context_tag
  repo_user-office_tag</p>