make use of regexp.Compile to replace regexp.MustCompile