Sets that a field value must match the specified regular expression.

Namespace: Castle.Components.Validator
Assembly:  Castle.Components.Validator (in Castle.Components.Validator.dll)
Version: 1.0.3.0

Syntax

C#
void SetRegExp(
	string target,
	string regExp,
	string violationMessage
)

Parameters

target
String
The target name (ie, a hint about the controller being validated)
regExp
String
The reg exp.
violationMessage
String
The violation message.

See Also