Description

Match Test that the obj matches regexp if type is string

Examples

	valid := Validation{}

	if valid.Match("[email protected]", regexp.MustCompile("^\\w+@\\w+\\.\\w+$"), "match").Ok {
		t.Error("\"[email protected]\" match \"^\\w+@\\w+\\.\\w+$\"  should be false")
	}

		t.Error("\"[email protected]\" match \"^\\w+@\\w+\\.\\w+$\"  should be false")
	}
	if !valid.Match("[email protected]", regexp.MustCompile("^\\w+@\\w+\\.\\w+$"), "match").Ok {
		t.Error("\"[email protected]\" match \"^\\w+@\\w+\\.\\w+$\"  should be true")
	}