MvcValidatorToolkit/Validators/ValidatePattern.cs
/// <summary>
/// Validates the given value against the regular expression.
/// </summary>
Validates the given value against the regular expression.
Validates the given value against the regular expression .
private bool ValidateRegex(string value)
		{
			if(string.IsNullOrEmpty(Pattern))
				return false;
			return new Regex(Pattern).IsMatch(value);
		}
private bool ValidateRegex ( string value ) { if ( string . IsNullOrEmpty ( Pattern ) ) return false ; return new Regex ( Pattern ) . IsMatch ( value ) ; }
Validates the given value against the regular expression.
Validates the given value against the regular expression .
value
string