RegExpValidator constructor

RegExpValidator(
  1. String key,
  2. String expression
)

Implementation

RegExpValidator(String key, String expression)
    : super(key, "$key is not valid.") {
  _regex = new RegExp(expression);
}