regex min length max length
snippet in javascript

regex min length max length

user8169

// Validate string length
/^.{1,35}$/.test(variable) // min - 1, max - 35