RegexConstraint public class RegexConstraint : StringConstraint RegexConstraint can test whether a string matches the pattern provided. Documentation public RegexConstraint(string pattern) Initializes a new instance of the RegexConstraint class.