title: How to write simple regex in golang?
body: <p>I am trying to write regexp that returns the substring for string that begins with dot and until first space. But I am new in regular expressions, so I tried something
   like that and it doesn't work at all:</p>
  
  <pre><code>package main
  
  import "fmt"
  import "regexp"
  
  func main() {
      re := regexp.MustCompile("\\.* ")
      fmt.Printf(re.FindString(".d 1000=11,12")) // Must return d
      fmt.Printf(re.FindString("e 2000=11"))     // Must return nothing or ""
      fmt.Printf(re.FindString(".e2000=11"))     // Must return nothing or ""
  }
  </code></pre>
  
  <p>this code just white 3 white space in golang. What I am doing wrong?</p>