title: Regular expression with beginning of line
body: <p>I'd like to use a regular expression which matches the beginning of a line in a text. For some reason, <code>^</code> does not work, see this failing test:</p>
  
  <pre><code>func TestNewLine(t *testing.T) {
      re := regexp.MustCompile("^bar")
      match := re.FindString("foo\nbar\nbaz")
      assert.Equal(t, "bar", match)
  }
  </code></pre>
  
  <p>What do I miss?</p>