Note that you can specify regular expression options inline in the pattern with the syntax (?imnsx-imnsx):
ValidationPattern = @"(?i)^[a-z]+$"
public string ValidationPattern { get; set; }
In This Article