func (mre *MatchRegexp) Validate() error {
	if mre.Name != "" && !wordRE.MatchString(mre.Name) {
		return fmt.Errorf("invalid regexp name (must contain only word characters): %s", mre.Name)
	}
	return nil
}
// Validate ensures mre is set up correctly.
Validate ensures mre is set up correctly.
// Validate ensures mre is set up correctly .
func (mre *MatchRegexp) Validate() error {
	if mre.Name != "" && !wordRE.MatchString(mre.Name) {
		return fmt.Errorf("invalid regexp name (must contain only word characters): %s", mre.Name)
	}
	return nil
}
func ( mre * MatchRegexp ) Validate ( ) error { if mre . Name != " " && ! wordRE . MatchString ( mre . Name ) { return fmt . Errorf ( " " , mre . Name ) } return nil }
Validate ensures mre is set up correctly.
Validate ensures mre is set up correctly .