modules/regex library

Functions

isAccountNumber(String val) String?
return an error message if value does not pass the validation validation requires val: not equal null and length must be more or equal to 10 characters
isDate(dynamic val) String?
return an error message if value does not pass the validation validation requires val: not equal null and the value must a date in this format (DD-MM-YYYY)
isEmail(String? val) String?
return an error message if value does not pass the validation validation requires val: not equal null, must contain @ char, must contain dot(".") and length must be more than 4 characters
isEmailOrTel(String? val) String?
return an error message if value does not pass the validation validation requires val: not equal null, must contain @ char, must contain dot(".") and length must be more than 4 characters
isMoney(String value, num min, num max, {String symbol = "NGN"}) String?
return an error message if value does not pass the validation validation requires val: not equal null and length must be more or equal to 10 characters
isNotNull(String? val) String?
return an error message if value does not pass the validation validation requires val: not equal null
isOtp(String val) String?
isPassword(String? val) String?
return an error message if value does not pass the validation validation requires val: not equal null and length must be more than 7 characters
isPin(String val) String?
return an error message if value does not pass the validation validation requires val: not equal null and length must be more or equal to 4 characters
isTel(String? val) String?
isValidCardExpireYear(String? val) String?
return an error message if value does not pass the validation validation requires val: not equal null