in Darabonba/Validator.cs [33:43]
public void ValidateRegex(object obj)
{
if (Attribute != null && !string.IsNullOrEmpty(Attribute.Pattern) && obj != null)
{
Match match = Regex.Match(obj.ToString(), Attribute.Pattern);
if (!match.Success)
{
throw new ArgumentException(string.Format("{0} is not match {1}", PropertyName, Attribute.Pattern));
}
}
}