regular expression for min lenth 2 and max length 12 code example
Example: regex min length max length
// Validate string length
/^.{1,35}$/.test(variable) // min - 1, max - 35
// Validate string length
/^.{1,35}$/.test(variable) // min - 1, max - 35