/// <summary> /// Check if property value match regex. /// </summary> /// <param name="pattern">Regex pattern.</param> /// <param name="options">Regex options.</param> /// <returns>Current instance.</returns> public PropertyValidator <TRow> TryRegex(string pattern, RegexOptions options = RegexOptions.None) { StringRule <TRow> method = new StringRule <TRow>((x) => this.getter(x)); method.TryRegex(pattern, options); this.validationRules.Add(method); return(this); }