All rules in this page can be applies to string
v.val("This string", "='This string'"); // true
Validates the input starts with the specified string in rule.
v.val("This string", "starts with 'This'"); // true
Validates the input ends with the specified string in rule.
v.val("This string", "ends with 'string'"); // true
Validates the input is contained by the specified string in rule.
v.val("string", "in 'a longer string that contains it'"); // true
Validates the input contains specified string in rule.
Validates the input is not empty.
Validates the length of the input is not exceed the max length.
Validates the input is number in percentage format.
Validates the input is a valid base64 string
Validates the input is a valid number format string
Validates the input is a valid integer format string
Validates the input is a valid float format string
Validates the input is a valid hex number format string
Validates the input is a vallid hex color format string
Validates the input is a vallid phone number in P.R.C
Validates the input is a vallid mobile phone number in P.R.C
Validate the input matches user defined regex