Class RegularExpressionValidationRule
Represents regular expression validation rule.
public class RegularExpressionValidationRule : ValidationRule<string>
  - Inheritance
 - 
      objectValidationRule<string>RegularExpressionValidationRule
 
- Inherited Members
 
- Extension Methods
 
Constructors
RegularExpressionValidationRule()
public RegularExpressionValidationRule()
  Properties
RegularExpression
Gets or sets the regular expression used to validate form component's value.
[EditingComponent("Kentico.TextInput", Label = "{$kentico.formbuilder.validationrule.regularexpression.regularexpression.label$}")]
[Required]
public string RegularExpression { get; set; }
  Property Value
- string
 
Methods
GetTitle()
Gets a title for this instance of validation rule such as 'Regular expression matches [a-Z+^]'.
public override string GetTitle()
  Returns
- string
 Returns text describing the validation rule.
Validate(string)
Validates the form component's value and returns true if the value is valid.
protected override bool Validate(string value)
  Parameters
valuestringValue of the form component.
Returns
- bool
 trueif the value is valid, otherwise false.