Description

NoMatch Test that the obj doesn't match regexp if type is string

Examples

	valid := Validation{}

	if valid.NoMatch("[email protected]", regexp.MustCompile("[^\\w\\d]"), "nomatch").Ok {
		t.Error("\"[email protected]\" not match \"[^\\w\\d]\"  should be false")
	}

		t.Error("\"[email protected]\" not match \"[^\\w\\d]\"  should be false")
	}
	if !valid.NoMatch("123gmail", regexp.MustCompile("[^\\w\\d]"), "match").Ok {
		t.Error("\"[email protected]\" not match \"[^\\w\\d@]\"  should be true")
	}

NoMatch is referenced in 1 repository

github.com/astaxie/beego