str allowStr = "^[а-яэъыёА-ЯЭЪЫЁ]+$"; ; if (!match(allowStr, _value)) ret = checkFailed(strfmt("Поле '%1' содержит запрещающие знаки.", _errorMsg));