code: func regexMatch(re, s string) (bool, error) {
  	compiled, err := regexp.Compile(re)
  	if err != nil {
  		return false, err
  	}
  	return compiled.MatchString(s), nil
  }
docs: // regexMatch returns true or false if the string matches
  // the given regular expression