Knockout validator for the "pattern" constraint.